iOS:success to debug js

This commit is contained in:
pengfeizhou
2021-02-23 11:06:57 +08:00
committed by osborn
parent 103a87df0b
commit 1d6a2d8828
3 changed files with 12 additions and 14 deletions

View File

@@ -62,7 +62,7 @@ - (instancetype)init {
if (TARGET_OS_SIMULATOR == 1) {
platform = [NSProcessInfo new].environment[@"SIMULATOR_MODEL_IDENTIFIER"];
}
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
CGFloat screenWidth;
CGFloat screenHeight;
@@ -73,7 +73,7 @@ - (instancetype)init {
screenWidth = [[UIScreen mainScreen] bounds].size.height;
screenHeight = [[UIScreen mainScreen] bounds].size.width;
}
_innerEnvironmentDictionary = @{
@"platform": @"iOS",
@"platformVersion": [[UIDevice currentDevice] systemVersion],