mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-03 14:27:03 +02:00
6 lines
341 B
TypeScript
6 lines
341 B
TypeScript
// This is a reference to the native setTimeout() function
|
|
// setTimeout() is used in various places around the game's source code.
|
|
// This reference is used to make sure that if players alter window.setTimeout()
|
|
// through NetscriptJS, then the game will still function properly
|
|
export const setTimeoutRef = window.setTimeout.bind(window);
|