diff options
author | Starfall <root@starfall.blue> | 2020-03-01 14:49:21 -0600 |
---|---|---|
committer | Starfall <root@starfall.blue> | 2020-03-01 14:49:21 -0600 |
commit | 12d35783db1bb302d7540d8d3690ab6eed3dac3b (patch) | |
tree | 66f1db08a2f6f9ae2254ba7a81b71835039d671e /app/javascript/flavours/glitch/util | |
parent | 22a55edc158352003a3953964c9d332a60c86428 (diff) |
Revert "Merge branch 'glitch'"
Login is broken This reverts commit 22a55edc158352003a3953964c9d332a60c86428, reversing changes made to 5902299384d15249fe4b84b8761d4a49f3c7f6fd.
Diffstat (limited to 'app/javascript/flavours/glitch/util')
-rw-r--r-- | app/javascript/flavours/glitch/util/base_polyfills.js | 3 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/util/load_polyfills.js | 3 | ||||
-rw-r--r-- | app/javascript/flavours/glitch/util/main.js | 2 |
3 files changed, 2 insertions, 6 deletions
diff --git a/app/javascript/flavours/glitch/util/base_polyfills.js b/app/javascript/flavours/glitch/util/base_polyfills.js index 4b8123dba..ad023eb73 100644 --- a/app/javascript/flavours/glitch/util/base_polyfills.js +++ b/app/javascript/flavours/glitch/util/base_polyfills.js @@ -6,7 +6,6 @@ import assign from 'object-assign'; import values from 'object.values'; import isNaN from 'is-nan'; import { decode as decodeBase64 } from './base64'; -import promiseFinally from 'promise.prototype.finally'; if (!Array.prototype.includes) { includes.shim(); @@ -24,8 +23,6 @@ if (!Number.isNaN) { Number.isNaN = isNaN; } -promiseFinally.shim(); - if (!HTMLCanvasElement.prototype.toBlob) { const BASE64_MARKER = ';base64,'; diff --git a/app/javascript/flavours/glitch/util/load_polyfills.js b/app/javascript/flavours/glitch/util/load_polyfills.js index 73eedc9dc..8cb81c1a6 100644 --- a/app/javascript/flavours/glitch/util/load_polyfills.js +++ b/app/javascript/flavours/glitch/util/load_polyfills.js @@ -18,8 +18,7 @@ function loadPolyfills() { Number.isNaN && Object.assign && Object.values && - window.Symbol && - Promise.prototype.finally + window.Symbol ); // Latest version of Firefox and Safari do not have IntersectionObserver. diff --git a/app/javascript/flavours/glitch/util/main.js b/app/javascript/flavours/glitch/util/main.js index 1fdb9ff2b..b76826481 100644 --- a/app/javascript/flavours/glitch/util/main.js +++ b/app/javascript/flavours/glitch/util/main.js @@ -12,7 +12,7 @@ function main() { if (window.history && history.replaceState) { const { pathname, search, hash } = window.location; const path = pathname + search + hash; - if (!(/^\/web($|\/)/).test(path)) { + if (!(/^\/web[$/]/).test(path)) { history.replaceState(null, document.title, `/web${path}`); } } |