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.ts6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/platform/polyfills.web.ts b/src/platform/polyfills.web.ts
index 1df661d70..acd8fd9ec 100644
--- a/src/platform/polyfills.web.ts
+++ b/src/platform/polyfills.web.ts
@@ -9,12 +9,8 @@ window.setImmediate = (cb: () => void) => setTimeout(cb, 0)
 
 // @ts-ignore not on the TS signature due to bad support -prf
 if (!globalThis.Intl?.Segmenter) {
-  // NOTE loading as a separate script to reduce main bundle size, as this is only needed in FF -prf
-  const script = document.createElement('script')
-  script.setAttribute('src', '/static/js/intl-segmenter-polyfill.min.js')
-  document.head.appendChild(script)
-
   // 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)