remove some events/timers left over from the stock intel site code
This commit is contained in:
parent
246fa1a7d7
commit
16cabd89bc
11
main.js
11
main.js
@ -23,7 +23,6 @@ window.iitcBuildDate = '@@BUILDDATE@@';
|
|||||||
window.onload = function() {};
|
window.onload = function() {};
|
||||||
document.body.onload = function() {};
|
document.body.onload = function() {};
|
||||||
|
|
||||||
|
|
||||||
// rescue user data from original page
|
// rescue user data from original page
|
||||||
var scr = document.getElementsByTagName('script');
|
var scr = document.getElementsByTagName('script');
|
||||||
for(var x in scr) {
|
for(var x in scr) {
|
||||||
@ -115,6 +114,16 @@ function wrapper(info) {
|
|||||||
// (not the full GM_info - it contains the ENTIRE script source!)
|
// (not the full GM_info - it contains the ENTIRE script source!)
|
||||||
window.script_info = info;
|
window.script_info = info;
|
||||||
|
|
||||||
|
// disabling of some cruft left behind by the stock site
|
||||||
|
try {
|
||||||
|
goog.events.removeAll();
|
||||||
|
goog.Timer.clear();
|
||||||
|
} catch(e) {
|
||||||
|
console.warn('Exception from trying to clear stock site stuff');
|
||||||
|
console.warn(e);
|
||||||
|
debugger; // debugger break
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// LEAFLET PREFER CANVAS ///////////////////////////////////////////////
|
// LEAFLET PREFER CANVAS ///////////////////////////////////////////////
|
||||||
// Set to true if Leaflet should draw things using Canvas instead of SVG
|
// Set to true if Leaflet should draw things using Canvas instead of SVG
|
||||||
|
Loading…
x
Reference in New Issue
Block a user