mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Fix login loop and system input wipe
This commit is contained in:
1 parent
ead1c40aac
commit
774e04816e
1 file changed
+4
-1
+4
-1
@@ -935,7 +935,9 @@ var sectionIntervals = [];
|
||||
var sectionInits = {};
|
||||
|
||||
function setSectionInterval(fn, ms) {
|
||||
sectionIntervals.push(setInterval(fn, ms));
|
||||
var id = setInterval(fn, ms);
|
||||
sectionIntervals.push(id);
|
||||
return id;
|
||||
}
|
||||
|
||||
function clearSectionIntervals() {
|
||||
@@ -961,6 +963,7 @@ window.addEventListener('hashchange', function() {
|
||||
});
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
if (!document.getElementById('page-overview')) return; // not index.html (e.g. login.html)
|
||||
showSection((location.hash || '#/overview').replace(/^#\//, ''));
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user