Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
1189 add code
  • Loading branch information
HillBillyDude authored Oct 25, 2024
1 parent 184627c commit 48afcb6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1187,6 +1187,15 @@ var Game={};
}

Game.LoadMod=LoadScript;//loads the mod at the given URL

const readyCheck = setInterval(() => {
const Game = unsafeWindow.Game;

if (typeof Game !== 'undefined' && typeof Game.ready !== 'undefined' && Game.ready) {
Game.LoadMod('https://cookiemonsterteam.github.io/CookieMonster/dist/CookieMonster.js');
clearInterval(readyCheck);
}
}, 1000);

if (false)
{
Expand Down

0 comments on commit 48afcb6

Please sign in to comment.