mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(webview): android not loading local content (#9923)
This commit is contained in:
@@ -94,8 +94,10 @@ export class WebView extends WebViewBase {
|
|||||||
|
|
||||||
public createNativeView() {
|
public createNativeView() {
|
||||||
const nativeView = new android.webkit.WebView(this._context);
|
const nativeView = new android.webkit.WebView(this._context);
|
||||||
nativeView.getSettings().setJavaScriptEnabled(true);
|
const settings = nativeView.getSettings();
|
||||||
nativeView.getSettings().setBuiltInZoomControls(true);
|
settings.setJavaScriptEnabled(true);
|
||||||
|
settings.setBuiltInZoomControls(true);
|
||||||
|
settings.setAllowFileAccess(true);
|
||||||
|
|
||||||
return nativeView;
|
return nativeView;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user