about summary refs log tree commit diff
path: root/src/platform/polyfills.web.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform/polyfills.web.ts')
-rw-r--r--src/platform/polyfills.web.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/platform/polyfills.web.ts b/src/platform/polyfills.web.ts
new file mode 100644
index 000000000..7a42f4887
--- /dev/null
+++ b/src/platform/polyfills.web.ts
@@ -0,0 +1,4 @@
+/// <reference lib="dom" />
+
+// @ts-ignore whatever typescript wants to complain about here, I dont care about -prf
+window.setImmediate = (cb: () => void) => setTimeout(cb, 0)