Skip to content

Commit 75f2ed1

Browse files
committed
Merge pull request #141 from joenoon/patch-2
alternative way to set property
2 parents 4b7e624 + 8dc41fa commit 75f2ed1

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)