Keeps a strong reference for handling dynamic deeplinks (#4325)

This commit is contained in:
Alan Andrade authored and Paul Beusterien committed 2019-11-18 10:48:51 -08:00
1 parent 75b8f92564
commit 210850900e
1 file changed
+3 -2
@@ -113,10 +113,11 @@ NSString *GINFingerprintJSMethodString() {
[webView
evaluateJavaScript:GINFingerprintJSMethodString()
completionHandler:^(id _Nullable result, NSError *_Nullable functionError) {
__typeof__(self) strongSelf = weakSelf;
if ([result isKindOfClass:[NSString class]]) {
[weakSelf handleExecutionResult:result];
[strongSelf handleExecutionResult:result];
} else {
[weakSelf handleExecutionError:nil];
[strongSelf handleExecutionError:nil];
}
}];
} else {