This commit is contained in:
DjDeveloperr 2021-04-09 10:39:35 +05:30
parent fe6ee7ddac
commit bd5153fd15
1 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,8 @@ export function handle(
client.handle(cmd, handler)
}
// Hacky workaround. Timers don't exist in Deploy runtime, what a shame!
if (typeof (window as any).setTimeout !== 'function') {
Object.defineProperty(window, 'setTimeout', {
value: (fn: CallableFunction, _ms: number, ...args: any[]) => {