1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2025-09-05 21:10:16 +02:00

Updated eslint rules

This commit is contained in:
zneix 2020-08-28 04:39:03 +02:00
parent 4a583a52ce
commit e4eeec3d27
19 changed files with 1096 additions and 550 deletions

View file

@ -18,7 +18,7 @@
// Handle pops
let handlePop = function(evt){
let path = evt.target.location.pathname;
if (path == '/') { app.newDocument(true); }
if (path == '/'){ app.newDocument(true); }
else { app.loadDocument(path.substring(1, path.length)); }
};
// Set up the pop state to handle loads, skipping the first load
@ -26,7 +26,7 @@
// http://code.google.com/p/chromium/issues/detail?id=63040
setTimeout(function(){
window.onpopstate = function(evt){
try { handlePop(evt); } catch(err) { /* not loaded yet */ }
try { handlePop(evt); } catch(err){ /* not loaded yet */ }
};
}, 1000);
// Construct app and load initial path