feat(deploy): remove unnecessary timer polyfill
This commit is contained in:
		
							parent
							
								
									9a72f66931
								
							
						
					
					
						commit
						ca3d68e6a0
					
				
					 1 changed files with 0 additions and 17 deletions
				
			
		
							
								
								
									
										17
									
								
								deploy.ts
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								deploy.ts
									
										
									
									
									
								
							|  | @ -75,23 +75,6 @@ export function handle( | |||
|   client.handle(cmd, handler) | ||||
| } | ||||
| 
 | ||||
| // Hacky workaround. Timers don't exist in Deploy runtime :(
 | ||||
| 
 | ||||
| if (typeof (window as any).setTimeout !== 'function') { | ||||
|   Object.defineProperty(window, 'setTimeout', { | ||||
|     value: (fn: CallableFunction, _ms: number, ...args: any[]) => { | ||||
|       fn(...args) | ||||
|       return 0 | ||||
|     } | ||||
|   }) | ||||
| } | ||||
| 
 | ||||
| if (typeof (window as any).clearTimeout !== 'function') { | ||||
|   Object.defineProperty(window, 'clearTimeout', { | ||||
|     value: (_id: number) => {} | ||||
|   }) | ||||
| } | ||||
| 
 | ||||
| export { commands, client } | ||||
| export * from './src/types/slash.ts' | ||||
| export * from './src/structures/slash.ts' | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue