mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 13:19:29 +08:00
DEV: Have app/app
export a class not an instance.
The app boot should call `create()`
This commit is contained in:
parent
279835f603
commit
e1d64cf896
|
@ -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(
|
||||
|
|
|
@ -179,6 +179,6 @@ const Discourse = Application.extend(FocusEvent, {
|
|||
return this.currentAssetVersion;
|
||||
}
|
||||
})
|
||||
}).create();
|
||||
});
|
||||
|
||||
export default Discourse;
|
||||
|
|
Loading…
Reference in New Issue
Block a user