From 5418474f640953e224c77661b20f049bdd0708a7 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 3 Jun 2021 22:50:33 +0200 Subject: [PATCH] Polyfill `globalThis` in latest build (#9352) --- src/html/authorize.html.template | 3 +++ src/html/index.html.template | 3 +++ src/html/onboarding.html.template | 3 +++ src/resources/compatibility.ts | 19 ++++++++++++++++--- 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/html/authorize.html.template b/src/html/authorize.html.template index 1cf1c7bba4..555aea9e0e 100644 --- a/src/html/authorize.html.template +++ b/src/html/authorize.html.template @@ -48,6 +48,9 @@ window.providersPromise = fetch("/auth/providers", { credentials: "same-origin", }); + if (!window.globalThis) { + window.globalThis = window; + }