about summary refs log tree commit diff
path: root/src/platform
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2023-11-01 17:49:07 +0000
committerGitHub <noreply@github.com>2023-11-01 17:49:07 +0000
commitf9944b55e26fe6109bc2e7a25b88979111470ed9 (patch)
treeac2fc96f8307b3b52acbacf46a4d104adf5bb2aa /src/platform
parent9fb20517ae0f6f755818209dbc927f5bdc21089b (diff)
downloadvoidsky-f9944b55e26fe6109bc2e7a25b88979111470ed9.tar.zst
Simplify loading emoji data (#1790)
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/polyfills.web.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/platform/polyfills.web.ts b/src/platform/polyfills.web.ts
index acd8fd9ec..0b4a28283 100644
--- a/src/platform/polyfills.web.ts
+++ b/src/platform/polyfills.web.ts
@@ -6,12 +6,3 @@ findLast.shim()
 
 // @ts-ignore whatever typescript wants to complain about here, I dont care about -prf
 window.setImmediate = (cb: () => void) => setTimeout(cb, 0)
-
-// @ts-ignore not on the TS signature due to bad support -prf
-if (!globalThis.Intl?.Segmenter) {
-  // loading emoji mart data
-  // TODO: This condition doesn't make sense; emojimart has nothing to do with Intl.
-  const emojiMartScript = document.createElement('script')
-  emojiMartScript.setAttribute('src', '/static/js/emoji-mart-data.js')
-  document.head.appendChild(emojiMartScript)
-}