check if zoom enabled before loading plugins
This commit is contained in:
parent
85b7715c5d
commit
d381a0304e
@ -99,10 +99,6 @@ public class IITC_WebViewClient extends WebViewClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// add all plugins to the script...inject plugins + main script simultaneously
|
|
||||||
js += parsePlugins();
|
|
||||||
this.js = js;
|
|
||||||
|
|
||||||
PackageManager pm = context.getPackageManager();
|
PackageManager pm = context.getPackageManager();
|
||||||
boolean hasMultitouch = pm
|
boolean hasMultitouch = pm
|
||||||
.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH);
|
.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH);
|
||||||
@ -112,6 +108,10 @@ public class IITC_WebViewClient extends WebViewClient {
|
|||||||
"window.showZoom = false;");
|
"window.showZoom = false;");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add all plugins to the script...inject plugins + main script simultaneously
|
||||||
|
js += parsePlugins();
|
||||||
|
this.js = js;
|
||||||
|
|
||||||
// need to wrap the mobile iitc.js version in a document ready. IITC
|
// need to wrap the mobile iitc.js version in a document ready. IITC
|
||||||
// expects to be injected after the DOM has been loaded completely.
|
// expects to be injected after the DOM has been loaded completely.
|
||||||
// Since the mobile client injects IITC by replacing the gen_dashboard
|
// Since the mobile client injects IITC by replacing the gen_dashboard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user