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() {
|
||||
const nativeView = new android.webkit.WebView(this._context);
|
||||
nativeView.getSettings().setJavaScriptEnabled(true);
|
||||
nativeView.getSettings().setBuiltInZoomControls(true);
|
||||
const settings = nativeView.getSettings();
|
||||
settings.setJavaScriptEnabled(true);
|
||||
settings.setBuiltInZoomControls(true);
|
||||
settings.setAllowFileAccess(true);
|
||||
|
||||
return nativeView;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user