Browse Source

scaffolding: Fix not starting the app.

Herby Vojčík 5 years ago
parent
commit
77a4fe0eb8
1 changed files with 5 additions and 5 deletions
  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>