Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] fix bundleType (#2606)
Browse files Browse the repository at this point in the history
* [iOS] fix bundleType

bundleType can be Vue, Rax
when the bundleType is "vue", the program goes bundleType = "other"

* [iOS] fix bundleType

[iOS] fix bundleType

* Update WXBridgeContext.m
  • Loading branch information
mario-huang authored and jianhan-he committed Jun 28, 2019
1 parent c36097b commit 7a8201c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/sdk/WeexSDK/Sources/Bridge/WXBridgeContext.m
Expand Up @@ -637,7 +637,7 @@ - (NSString *)_pareJSBundleType:(NSString*)instanceIdString jsBundleString:(NSSt
NSURLComponents * urlComponent = [NSURLComponents componentsWithString:instance.pageName?:@""];
if (@available(iOS 8.0, *)) {
for (NSURLQueryItem * queryItem in urlComponent.queryItems) {
if ([queryItem.name isEqualToString:@"bundleType"] && [@[@"vue", @"rax"] containsObject:queryItem.value]) {
if ([queryItem.name isEqualToString:@"bundleType"] && [@[@"Vue", @"Rax", @"vue", @"rax"] containsObject:queryItem.value]) {
bundleType = queryItem.value;
return bundleType;
}
Expand Down

0 comments on commit 7a8201c

Please sign in to comment.