From 61177c4cda490ac883d9a63b10e48c3c14807939 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 31 Aug 2013 16:43:45 +0100 Subject: [PATCH] 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 --- .../src/com/cradle/iitc_mobile/IITC_WebViewClient.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java index 605fb34d..cc1fd222 100644 --- a/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/src/com/cradle/iitc_mobile/IITC_WebViewClient.java @@ -298,11 +298,11 @@ public class IITC_WebViewClient extends WebViewClient { String url) { if (url.contains("/css/common.css")) { return new WebResourceResponse("text/css", "UTF-8", STYLE); - } else if (url.contains("gen_dashboard.js")) { - // define initialize function to get rid of JS ReferenceError on intel page's 'onLoad' - String gen_dashboad_replacement = "window.initialize = function() {}"; - return new WebResourceResponse("text/javascript", "UTF-8", - new ByteArrayInputStream(gen_dashboad_replacement.getBytes())); +// } else if (url.contains("gen_dashboard.js")) { +// // define initialize function to get rid of JS ReferenceError on intel page's 'onLoad' +// String gen_dashboad_replacement = "window.initialize = function() {}"; +// return new WebResourceResponse("text/javascript", "UTF-8", +// new ByteArrayInputStream(gen_dashboad_replacement.getBytes())); } else if (url.contains("/css/ap_icons.css") || url.contains("/css/map_icons.css") || url.contains("/css/common.css")