瀏覽代碼

scaffolding: Fix not starting the app.

Herby Vojčík 5 年之前
父節點
當前提交
77a4fe0eb8
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      grunt-init-project/root/index.html

+ 5 - 5
grunt-init-project/root/index.html

@@ -28,12 +28,12 @@
         return amber.initialize({
             //used for all new packages in IDE
             'transport.defaultAmdNamespace': "{%= namespace %}"
+        }).then(function () {
+            require(["amber-ide-starter-dialog"], function (dlg) {
+                dlg.start();
+            });
+            amber.globals.{%= name %}._start();
         });
-    }).then(function () {
-        require(["amber-ide-starter-dialog"], function (dlg) {
-            dlg.start();
-        });
-        amber.globals.{%= name %}._start();
     });
 </script>
 </body>