Is there a chance that JavaScript globalThis is not supported to be used with an iOS 11, or earlier versions?
Is there any solution to the globalThis, since now, I get an error for ReferenceError: main.chunk.js Can't find variable: globalThis?
According to the MDN page on globalThis, iOS Safari support is version 12.2 or later.
For earlier versions, you will need a polyfill.
Or you could insert this code at the global context:
if (typeof globalThis === 'undefined') {
var globalThis = Function('return this')();
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With