weak ref type was wrong

This commit is contained in:
Jesse MacFadyen 2015-11-18 14:22:06 -08:00
parent 6815a48408
commit 682703aa24

View File

@ -777,7 +777,7 @@
if (_userAgentLockToken != 0) {
[self.webView loadRequest:request];
} else {
__weak CDVInAppBrowser* weakSelf = self;
__weak CDVInAppBrowserViewController* weakSelf = self;
[CDVUserAgentUtil acquireLock:^(NSInteger lockToken) {
_userAgentLockToken = lockToken;
[CDVUserAgentUtil setUserAgent:_userAgent lockToken:lockToken];