Fix libhooktick.js

Fixes a breaking bug
This commit is contained in:
MollTheCoder 2023-07-02 11:12:47 -04:00 committed by GitHub
parent 954feddf7a
commit 9c3645c9c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
clearInterval(tickInterval);
window.addEventListener("load", ()=>{
clearInterval(tickInterval);
});
const oldTick = tick;
let __registeredTickCallbacks = [];
function everyTick(callback){