Skip to content

Commit

Permalink
Tweak global injection
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis authored May 2, 2019
1 parent 92a9f02 commit f87571c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Libraries/Blob/RCTBlobCollector.mm
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
}

void RCTBlobCollector::install(RCTBlobManager *blobManager) {
RCTCxxBridge *cxxBridge = (RCTCxxBridge *)blobManager.bridge;
if (cxxBridge.runtime == nullptr) {
return;
}
__weak RCTCxxBridge *cxxBridge = (RCTCxxBridge *)blobManager.bridge;
[cxxBridge dispatchBlock:^{
if (!cxxBridge || cxxBridge.runtime == nullptr) {
return;
}
jsi::Runtime &runtime = *(jsi::Runtime *)cxxBridge.runtime;
runtime.global().setProperty(
runtime,
Expand Down

0 comments on commit f87571c

Please sign in to comment.