FIX: Add replaceAll to browser-detect (#16248)
We're using replaceAll in a few places. If it's not supported, we should fall back to the basic-html view.
This commit is contained in:
parent
4e6f7a1a6e
commit
cf6deb439a
|
@ -1,4 +1,9 @@
|
||||||
if (!window.WeakMap || !window.Promise || typeof globalThis === "undefined") {
|
if (
|
||||||
|
!window.WeakMap ||
|
||||||
|
!window.Promise ||
|
||||||
|
typeof globalThis === "undefined" ||
|
||||||
|
!String.prototype.replaceAll
|
||||||
|
) {
|
||||||
window.unsupportedBrowser = true;
|
window.unsupportedBrowser = true;
|
||||||
} else {
|
} else {
|
||||||
// Some implementations of `WeakMap.prototype.has` do not accept false
|
// Some implementations of `WeakMap.prototype.has` do not accept false
|
||||||
|
|
Loading…
Reference in New Issue