diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-03-23 04:47:13 -0400 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2023-03-26 15:49:49 +0200 |
commit | 00c839b9a912ee495d344d61a5c7f26ca133e13d (patch) | |
tree | b0195053e5563bbbaabdc867c93d02ed1d9a24d0 /app/javascript/flavours/glitch | |
parent | 14b0311029b645450c99845fce2f52e46d7be251 (diff) |
[Glitch] Remove isNaN polyfill
Port b46125224c26bc0144659b4319ea416b01289961 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch')
-rw-r--r-- | app/javascript/flavours/glitch/base_polyfills.js | 5 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/load_polyfills.js | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/app/javascript/flavours/glitch/base_polyfills.js b/app/javascript/flavours/glitch/base_polyfills.js index 12096d902..d3ac0d510 100644 --- a/app/javascript/flavours/glitch/base_polyfills.js +++ b/app/javascript/flavours/glitch/base_polyfills.js @@ -4,7 +4,6 @@ import 'es6-symbol/implement'; import includes from 'array-includes'; import assign from 'object-assign'; import values from 'object.values'; -import isNaN from 'is-nan'; import { decode as decodeBase64 } from './utils/base64'; import promiseFinally from 'promise.prototype.finally'; @@ -20,10 +19,6 @@ if (!Object.values) { values.shim(); } -if (!Number.isNaN) { - Number.isNaN = isNaN; -} - promiseFinally.shim(); if (!HTMLCanvasElement.prototype.toBlob) { diff --git a/app/javascript/flavours/glitch/load_polyfills.js b/app/javascript/flavours/glitch/load_polyfills.js index f5a897f75..b2c41303a 100644 --- a/app/javascript/flavours/glitch/load_polyfills.js +++ b/app/javascript/flavours/glitch/load_polyfills.js @@ -15,7 +15,6 @@ function loadPolyfills() { Array.prototype.includes && HTMLCanvasElement.prototype.toBlob && window.Intl && - Number.isNaN && Object.assign && Object.values && window.Symbol && |