remove (for now) the mobile app code that prevented loading the stock gen_dashboard.js

due to recent changes (attempts to block IITC?) the IITC scripts now need to see the functions defined in the stock site
This commit is contained in:
Jon Atkins 2013-08-31 16:43:45 +01:00
parent 043690f99b
commit 61177c4cda

View File

@ -298,11 +298,11 @@ public class IITC_WebViewClient extends WebViewClient {
String url) { String url) {
if (url.contains("/css/common.css")) { if (url.contains("/css/common.css")) {
return new WebResourceResponse("text/css", "UTF-8", STYLE); return new WebResourceResponse("text/css", "UTF-8", STYLE);
} else if (url.contains("gen_dashboard.js")) { // } else if (url.contains("gen_dashboard.js")) {
// define initialize function to get rid of JS ReferenceError on intel page's 'onLoad' // // define initialize function to get rid of JS ReferenceError on intel page's 'onLoad'
String gen_dashboad_replacement = "window.initialize = function() {}"; // String gen_dashboad_replacement = "window.initialize = function() {}";
return new WebResourceResponse("text/javascript", "UTF-8", // return new WebResourceResponse("text/javascript", "UTF-8",
new ByteArrayInputStream(gen_dashboad_replacement.getBytes())); // new ByteArrayInputStream(gen_dashboad_replacement.getBytes()));
} else if (url.contains("/css/ap_icons.css") } else if (url.contains("/css/ap_icons.css")
|| url.contains("/css/map_icons.css") || url.contains("/css/map_icons.css")
|| url.contains("/css/common.css") || url.contains("/css/common.css")