Kaynağa Gözat

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík 6 yıl önce
ebeveyn
işleme
b99c2b935b
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  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({