about summary refs log tree commit diff
path: root/src/platform/polyfills.web.ts
diff options
context:
space:
mode:
authorMichael Staub <michael.staub@brightmachines.com>2023-02-23 16:34:25 -0800
committerMichael Staub <michael.staub@brightmachines.com>2023-02-23 16:34:25 -0800
commit693cbb9f18eeec48ea6ed3eb03ff3a96ca6ec7dc (patch)
tree192494fe0751aa279209f447587c311efcd33668 /src/platform/polyfills.web.ts
parent23f07d8def1f4384022c7fecd0d7eac0ba8b2efc (diff)
parentbbd0b03a46b1087ecca17219441d060c2be69de2 (diff)
downloadvoidsky-693cbb9f18eeec48ea6ed3eb03ff3a96ca6ec7dc.tar.zst
Merge branch 'rnw' of github.com:bluesky-social/social-app into rnw
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)