Browse Source

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík 6 years ago
parent
commit
b99c2b935b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      root/index.html

+ 1 - 0
root/index.html

@@ -21,6 +21,7 @@
 <ol id="output-list"></ol>
 <!-- EXAMPLE APP END -->
 <script type='text/javascript'>
+    var global = typeof global === "undefined" ? window : global || window;
     require(['app'], function (amberPromise) {
         amberPromise.then(function (amber) {
             amber.initialize({