iOS:fix sync in main thread
This commit is contained in:
parent
c0c9252fc1
commit
03e5376909
@ -38,7 +38,6 @@ - (instancetype)init {
|
||||
if (self = [super init]) {
|
||||
_jsQueue = dispatch_queue_create("doric.jsengine", DISPATCH_QUEUE_SERIAL);
|
||||
_bridgeExtension = [[DoricBridgeExtension alloc] init];
|
||||
dispatch_sync(dispatch_get_main_queue(), ^{
|
||||
NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
|
||||
_innerEnvironmentDictionary = @{
|
||||
@"platform": @"iOS",
|
||||
@ -49,7 +48,6 @@ - (instancetype)init {
|
||||
@"screenHeight": @([[UIScreen mainScreen] bounds].size.height),
|
||||
@"statusBarHeight": @([[UIApplication sharedApplication] statusBarFrame].size.height),
|
||||
};
|
||||
});
|
||||
dispatch_async(_jsQueue, ^() {
|
||||
self.timers = [[NSMutableDictionary alloc] init];
|
||||
[self initJSEngine];
|
||||
|
Reference in New Issue
Block a user