Browse Source

Comment the IDE dialog.

So it is understood there is no need
to remove it for deployment.
Herby Vojčík 4 years ago
parent
commit
dfe1fd4398
1 changed files with 4 additions and 0 deletions
  1. 4 0
      grunt-init-project/root/index.html

+ 4 - 0
grunt-init-project/root/index.html

@@ -31,9 +31,13 @@
                 //used for all new packages in IDE
                 'transport.defaultAmdNamespace': "{%= namespace %}"
             }).then(function () {
+                // This shows IDE dialog in development mode (module is present).
+                // This silently fails in deploy mode (module is missing).
+                // Thus, no need to have different page for deploy, leading to less bugs.
                 require(["amber-ide-starter-dialog"], function (dlg) {
                     dlg.start();
                 });
+                // Start the app itself.
                 amber.globals.{%= name %}._start();
             });
         });