From 08a69b95d5524d3ae53718eaa73e4cf1bd5dcdc4 Mon Sep 17 00:00:00 2001 From: Joshua Horton Date: Tue, 19 Aug 2025 08:08:07 -0500 Subject: [PATCH] change(android): check globalThis before polyfill --- android/KMEA/app/src/main/assets/other-polyfills.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/android/KMEA/app/src/main/assets/other-polyfills.js b/android/KMEA/app/src/main/assets/other-polyfills.js index d91943eda0..f86e51f8f4 100644 --- a/android/KMEA/app/src/main/assets/other-polyfills.js +++ b/android/KMEA/app/src/main/assets/other-polyfills.js @@ -18,4 +18,6 @@ if(!Array.prototype.includes){ // This file is only referenced by the main Web engine; its "global" object is `window`. // `globalThis` is defined in Chrome 71+. -var globalThis = window; \ No newline at end of file +if(typeof globalThis == 'undefined') { + var globalThis = window; +} \ No newline at end of file