diff --git a/src/scripts/apploader.js b/src/scripts/apploader.js index 7001c4c614..1ee74178b1 100644 --- a/src/scripts/apploader.js +++ b/src/scripts/apploader.js @@ -29,6 +29,16 @@ ); } + try { + Promise.resolve(); + } catch (ex) { + // this checks for several cases actually, typical is + // Promise() being missing on some legacy browser, and a funky one + // is Promise() present but buggy on WebOS 2 + window.Promise = undefined; + self.Promise = undefined; + } + if (!self.Promise) { // Load Promise polyfill if they are not natively supported injectScriptElement(