Avoid JS errors
This commit is contained in:
parent
360c51e7dc
commit
546ed4e98f
@ -416,7 +416,7 @@ window.clampLatLngBounds = function(bounds) {
|
|||||||
|
|
||||||
// avoid error in stock JS
|
// avoid error in stock JS
|
||||||
if(goog && goog.style) {
|
if(goog && goog.style) {
|
||||||
goog.style.showElement = function(a, b) {
|
goog.style.setElementShown = goog.style.showElement = function(a, b) {
|
||||||
if(a && a.style)
|
if(a && a.style)
|
||||||
a.style.display = b ? "" : "none"
|
a.style.display = b ? "" : "none"
|
||||||
};
|
};
|
||||||
|
@ -370,7 +370,7 @@ public class IITC_Mobile extends Activity
|
|||||||
if (findViewById(R.id.imageLoading).getVisibility() == View.GONE) {
|
if (findViewById(R.id.imageLoading).getVisibility() == View.GONE) {
|
||||||
// enough idle...let's do some work
|
// enough idle...let's do some work
|
||||||
Log.d("resuming...reset idleTimer");
|
Log.d("resuming...reset idleTimer");
|
||||||
mIitcWebView.loadUrl("javascript: window.idleReset();");
|
mIitcWebView.loadJS("(function(){if(window.idleReset) window.idleReset();})();");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user