fix initialization
This commit is contained in:
+1
-2
@@ -59,6 +59,7 @@ object GlobalComponents {
|
||||
tabContentEvents,
|
||||
extensionEvents
|
||||
)
|
||||
_components = newComponents
|
||||
|
||||
//newComponents.crashReporter.install(applicationContext)
|
||||
|
||||
@@ -109,7 +110,5 @@ object GlobalComponents {
|
||||
GlobalScope.launch(Dispatchers.IO) {
|
||||
newComponents.core.fileUploadsDirCleaner.cleanUploadsDirectory()
|
||||
}
|
||||
|
||||
_components = newComponents
|
||||
}
|
||||
}
|
||||
+2
@@ -64,6 +64,8 @@ class GeckoBrowserApiImpl : GeckoBrowserApi {
|
||||
fun attachBinding(flutterPluginBinding: FlutterPluginBinding) {
|
||||
_flutterPluginBinding = flutterPluginBinding
|
||||
_flutterEvents = GeckoStateEvents(_flutterPluginBinding.binaryMessenger)
|
||||
|
||||
isGeckoInitialized = false
|
||||
}
|
||||
|
||||
fun attachActivity(activity: Activity) {
|
||||
|
||||
Reference in New Issue
Block a user