Explorar o código

scaffolding: Fix not starting the app.

Herby Vojčík %!s(int64=5) %!d(string=hai) anos
pai
achega
77a4fe0eb8
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  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>