NJKWebViewProgress icon indicating copy to clipboard operation
NJKWebViewProgress copied to clipboard

bug(njkwebviewprogressproxy/complete)404

Open yongyuanruhe opened this issue 6 years ago • 0 comments

if (interactive) { _interactive = YES; NSString *waitForCompleteJS = [NSString stringWithFormat:@"window.addEventListener('load',function() { var iframe = document.createElement('iframe'); iframe.style.display = 'none'; iframe.src = '%@://%@%@'; document.body.appendChild(iframe); }, false);", webView.request.mainDocumentURL.scheme, webView.request.mainDocumentURL.host, completeRPCURLPath]; [webView stringByEvaluatingJavaScriptFromString:waitForCompleteJS]; } Turn mainDocumentURL.host into an empty string or other domain name

yongyuanruhe avatar Apr 18 '19 03:04 yongyuanruhe