mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-21 07:07:39 +00:00
Merge pull request #14541 from keymanapp/fix/android/globalThis-polyfill
fix(android): polyfill globalThis for API 28 devices
This commit is contained in:
commit
a194e02bfd
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue