Avoid JS errors

This commit is contained in:
fkloft 2014-08-13 10:53:09 +02:00
parent 360c51e7dc
commit 546ed4e98f
2 changed files with 2 additions and 2 deletions

View File

@ -416,7 +416,7 @@ window.clampLatLngBounds = function(bounds) {
// avoid error in stock JS
if(goog && goog.style) {
goog.style.showElement = function(a, b) {
goog.style.setElementShown = goog.style.showElement = function(a, b) {
if(a && a.style)
a.style.display = b ? "" : "none"
};

View File

@ -370,7 +370,7 @@ public class IITC_Mobile extends Activity
if (findViewById(R.id.imageLoading).getVisibility() == View.GONE) {
// enough idle...let's do some work
Log.d("resuming...reset idleTimer");
mIitcWebView.loadUrl("javascript: window.idleReset();");
mIitcWebView.loadJS("(function(){if(window.idleReset) window.idleReset();})();");
}
}