FIX: Feature detect globalThis (#14410)
* FIX: Feature detect globalThis So browsers without support will receive a warning and browse our JS-less view.
This commit is contained in:
parent
2e085915cc
commit
a4cef67e14
|
@ -1,4 +1,4 @@
|
|||
if (!window.WeakMap || !window.Promise) {
|
||||
if (!window.WeakMap || !window.Promise || typeof globalThis === "undefined") {
|
||||
window.unsupportedBrowser = true;
|
||||
} else {
|
||||
// Some implementations of `WeakMap.prototype.has` do not accept false
|
||||
|
|
Loading…
Reference in New Issue