Skip to content

Commit 38e4421

Browse files
committed
Remove applicationCache addEventListener lines.
1 parent 95bf2e8 commit 38e4421

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

js/app.js

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,14 +255,19 @@ function trackerInit() {
255255
var initTimer = setTimeout(trackerInit, 3000);
256256

257257
var cache = window.applicationCache;
258-
cache.addEventListener('noupdate', loadComplete, false);
259-
cache.addEventListener('updateready', loadComplete, false);
260-
cache.addEventListener('cached', loadComplete, false);
261-
cache.addEventListener('error', loadComplete, false);
258+
// TEMPORARILY DISABLED - MJ 2020-08-29
259+
// Application Cache is broken in recent chrome versions/
260+
// Disabling these addEventListener calls at least makes the rest of the page load.
261+
// Unsure what the implications of disabling these are.
262+
263+
//cache.addEventListener('noupdate', loadComplete, false);
264+
//cache.addEventListener('updateready', loadComplete, false);
265+
//cache.addEventListener('cached', loadComplete, false);
266+
//cache.addEventListener('error', loadComplete, false);
262267

263268
// if the browser supports progress events, display a loading bar
264-
cache.addEventListener('checking', function() { if(map && !force_check_cache) return; force_check_cache = false; clearTimeout(initTimer); $('#loading .bar,#loading').show(); $('#loading .complete').css({width: 0}); }, false);
265-
cache.addEventListener('progress', function(e) { $('#loading .complete').stop(true,true).animate({width: (200/e.total)*e.loaded}); }, false);
269+
//cache.addEventListener('checking', function() { if(map && !force_check_cache) return; force_check_cache = false; clearTimeout(initTimer); $('#loading .bar,#loading').show(); $('#loading .complete').css({width: 0}); }, false);
270+
//cache.addEventListener('progress', function(e) { $('#loading .complete').stop(true,true).animate({width: (200/e.total)*e.loaded}); }, false);
266271

267272
var listScroll;
268273
var GPS_ts = null;

js/tracker.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -851,11 +851,6 @@ function stringToDateUTC(text) {
851851
return new Date(convert_time(text));
852852
}
853853

854-
function twoZeroPad(n){
855-
n = String(n);
856-
return (n.length<2) ? '0'+n : n;
857-
}
858-
859854
function formatDate(date,utc) {
860855
var a,b,c,d,e,f,g,z;
861856

0 commit comments

Comments
 (0)