iOS:init registry synchronously

This commit is contained in:
pengfeizhou 2021-02-07 18:08:43 +08:00 committed by osborn
parent a415365159
commit 682b6ebcb4

View File

@ -87,9 +87,9 @@ - (instancetype)init {
@"deviceBrand": @"Apple",
@"deviceModel": platform,
};
self.registry = [[DoricRegistry alloc] init];
[self ensureRunOnJSThread:^() {
self.timers = [[NSMutableDictionary alloc] init];
self.registry = [[DoricRegistry alloc] init];
self.bridgeExtension = [DoricBridgeExtension new];
self.bridgeExtension.registry = self.registry;
[self initJSEngine];