diff --git a/src/android/Printer.java b/src/android/Printer.java index e393a77..eb6b6dc 100644 --- a/src/android/Printer.java +++ b/src/android/Printer.java @@ -218,11 +218,15 @@ public class Printer extends CordovaPlugin { Activity ctx = cordova.getActivity(); view = new WebView(ctx); WebSettings settings = view.getSettings(); + final boolean jsEnabled = props.optBoolean("javascript", false); settings.setDatabaseEnabled(true); settings.setGeolocationEnabled(true); settings.setSaveFormData(true); settings.setUseWideViewPort(true); + if (jsEnabled) { + settings.setJavaScriptEnabled(jsEnabled); + } view.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY); if (Build.VERSION.SDK_INT >= 21) {