index.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>WebStore</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. <meta name="author" content="GeneralFailure" />
  7. <script type="text/javascript" src="the.js"></script>
  8. </head>
  9. <body>
  10. <script type="text/javascript">
  11. var globalThis =
  12. typeof globalThis === "undefined" ? window : globalThis || window;
  13. require(["app"], function (amberPromise) {
  14. amberPromise.then(function (amber) {
  15. amber
  16. .initialize({
  17. //used for all new packages in IDE
  18. "transport.defaultAmdNamespace": "amber-webstore",
  19. })
  20. .then(function () {
  21. // This shows IDE dialog in development mode (module is present).
  22. // This silently fails in deploy mode (module is missing).
  23. // Thus, no need to have different page for deploy, leading to less bugs.
  24. require(["amber-ide-starter-dialog"], function (dlg) {
  25. dlg.start();
  26. });
  27. // Start the app itself.
  28. amber.globals.Webstore._start();
  29. });
  30. });
  31. });
  32. </script>
  33. </body>
  34. </html>