Skip to content

Commit

Permalink
fix: set userAgent default valuse
Browse files Browse the repository at this point in the history
  • Loading branch information
pklatka committed Apr 24, 2024
1 parent 3181593 commit c843909
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.json.JSONObject


class RNSession(
private val reactContext: ReactApplicationContext,
private val sessionHandle: String,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RNSessionManager(reactContext: ReactApplicationContext) :
fun findOrCreateSession(
reactContext: ReactApplicationContext,
sessionHandle: String,
applicationNameForUserAgent: String?
applicationNameForUserAgent: String? = null
): RNSession = sessions.getOrPut(sessionHandle) {
RNSession(reactContext, sessionHandle, applicationNameForUserAgent)
}
Expand Down

0 comments on commit c843909

Please sign in to comment.