Simplify loading emoji data (#1790)
This commit is contained in:
parent
9fb20517ae
commit
f9944b55e2
4 changed files with 3 additions and 22 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue