Browse Source

Actually polyfill Promise.

(not that it is probably needed nowadays)
Herby Vojčík 5 years ago
parent
commit
a50080dbfe
1 changed files with 6 additions and 3 deletions
  1. 6 3
      index.html

+ 6 - 3
index.html

@@ -23,9 +23,12 @@
                 require.baseUrl = base;
                 require.paths['helios/app'] = require.paths['helios/index'].replace("index", "app");
                 require.callback = function () {
-                    require(["helios/app", "amber_core/Platform-Browser"], function (amber) {
-                        amber.initialize({'transport.defaultAmdNamespace': "helios"}).then(function () {
-                            amber.globals.HLManager._setup();
+                    require(["amber/es6-promise"], function (promiseLib) {
+                        promiseLib.polyfill();
+                        require(["helios/app", "amber_core/Platform-Browser"], function (amber) {
+                            amber.initialize({'transport.defaultAmdNamespace': "helios"}).then(function () {
+                                amber.globals.HLManager._setup();
+                            });
                         });
                     });
                 };