Skip to content

Commit 8dc41fa

Browse files
committed
alternative way to set property
This is the only other way I can think of. re #139 and #140
1 parent 4b7e624 commit 8dc41fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CodePush.m

+2-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ - (void)loadBundle
230230
// file (since Chrome wouldn't support it). Otherwise, update
231231
// the current bundle URL to point at the latest update
232232
if ([CodePush isUsingTestConfiguration] || ![_bridge.bundleURL.scheme hasPrefix:@"http"]) {
233-
_bridge.bundleURL = [CodePush bundleURL];
233+
[_bridge setValue:[CodePush bundleURL] forKey:@"bundleURL"];
234234
}
235235

236236
[_bridge reload];
@@ -492,4 +492,4 @@ - (void)savePendingUpdate:(NSString *)packageHash
492492
}
493493
}
494494

495-
@end
495+
@end

0 commit comments

Comments
 (0)