mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
refactor(ios-webview): remove useless js evaluation (#5584)
This commit is contained in:

committed by
Manol Donev

parent
81a2cbd0fe
commit
1931669f79
@ -56,9 +56,6 @@ class WKNavigationDelegateImpl extends NSObject
|
|||||||
}
|
}
|
||||||
const owner = this._owner.get();
|
const owner = this._owner.get();
|
||||||
if (owner) {
|
if (owner) {
|
||||||
webView.evaluateJavaScriptCompletionHandler("document.body.height",(val,err)=>{
|
|
||||||
console.log(val);
|
|
||||||
});
|
|
||||||
let src = owner.src;
|
let src = owner.src;
|
||||||
if (webView.URL) {
|
if (webView.URL) {
|
||||||
src = webView.URL.absoluteString;
|
src = webView.URL.absoluteString;
|
||||||
|
Reference in New Issue
Block a user