Merge pull request #14541 from keymanapp/fix/android/globalThis-polyfill

fix(android): polyfill globalThis for API 28 devices
This commit is contained in:
Joshua Horton 2025-08-28 20:12:32 +07:00 committed by GitHub
commit a194e02bfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -14,4 +14,10 @@ if(!Array.prototype.includes){
Array.prototype.includes = function(search){
return !!~this.indexOf(search);
}
}
// This file is only referenced by the main Web engine; its "global" object is `window`.
// `globalThis` is defined in Chrome 71+.
if(typeof globalThis == 'undefined') {
var globalThis = window;
}