Closed TranNghiaHiep closed 4 months ago
I tried adding a code snippet to check the URL scheme before redirecting, and it works. Will this have any impact?
Line 333 in file PBMWebView.m
if ([[url scheme] isEqualToString:@"http"] || [[url scheme] isEqualToString:@"https"]) { [self.delegate webView:self receivedClickthroughLink:url]; }
When I click on an ad that redirects to "about:blank" or when I try to click on an ad quickly as soon as it appears, it redirects to "about:blank". App crash with error: "*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'The specified URL has an unsupported scheme. Only HTTP and HTTPS URLs are supported.'"