diff --git a/deploy.ts b/deploy.ts index 79bb5d2..ad4df31 100644 --- a/deploy.ts +++ b/deploy.ts @@ -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[]) => {