Skip to content

Commit

Permalink
* [ios] ios7 bugfix api
Browse files Browse the repository at this point in the history
  • Loading branch information
gurisxie committed Sep 9, 2016
1 parent 2b29988 commit 6e7cf07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ios/sdk/WeexSDK/Sources/Bridge/WXJSCoreBridge.m
Expand Up @@ -107,7 +107,11 @@ - (instancetype)init
- (void)executeJSFramework:(NSString *)frameworkScript
{
WXAssertParam(frameworkScript);
[_jsContext evaluateScript:frameworkScript withSourceURL:[NSURL URLWithString:@"main.js"]];
if (WX_SYS_VERSION_GREATER_THAN_OR_EQUAL_TO(@"8.0")) {
[_jsContext evaluateScript:frameworkScript withSourceURL:[NSURL URLWithString:@"main.js"]];
}else{
[_jsContext evaluateScript:frameworkScript];
}
}

- (JSValue *)callJSMethod:(NSString *)method args:(NSArray *)args
Expand Down

0 comments on commit 6e7cf07

Please sign in to comment.