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

The app boot should call `create()`
This commit is contained in:
Robin Ward 2020-05-05 14:54:13 -04:00
parent 279835f603
commit e1d64cf896
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -179,6 +179,6 @@ const Discourse = Application.extend(FocusEvent, {
return this.currentAssetVersion;
}
})
}).create();
});
export default Discourse;