소스 검색

Use `global` global variable.

As it is not defined in browser, polyfill it there.
Herby Vojčík 6 년 전
부모
커밋
b99c2b935b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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({