DEV: Have `app/app` export a class not an instance.

DEV: Have app/app export a class not an instance.

The app boot should call create()

diff --git a/app/assets/javascripts/app-boot.js b/app/assets/javascripts/app-boot.js
index 0fd7a5e..ef47026 100644
--- a/app/assets/javascripts/app-boot.js
+++ b/app/assets/javascripts/app-boot.js
@@ -4,7 +4,7 @@
   if (window.unsupportedBrowser) {
     throw "Unsupported browser detected";
   }
-  let Discourse = requirejs("discourse/app").default;
+  let Discourse = requirejs("discourse/app").default.create();
 
   // required for our template compiler
   window.__DISCOURSE_RAW_TEMPLATES = requirejs(
diff --git a/app/assets/javascripts/discourse/app/app.js b/app/assets/javascripts/discourse/app/app.js
index 83e8ef8..23ea0b1 100644
--- a/app/assets/javascripts/discourse/app/app.js
+++ b/app/assets/javascripts/discourse/app/app.js
@@ -179,6 +179,6 @@ const Discourse = Application.extend(FocusEvent, {
       return this.currentAssetVersion;
     }
   })
-}).create();
+});
 
 export default Discourse;

GitHub sha: e1d64cf8