diff --git a/android/KMEA/app/src/main/assets/other-polyfills.js b/android/KMEA/app/src/main/assets/other-polyfills.js index 2102a07134..f86e51f8f4 100644 --- a/android/KMEA/app/src/main/assets/other-polyfills.js +++ b/android/KMEA/app/src/main/assets/other-polyfills.js @@ -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; } \ No newline at end of file