mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 16:53:53 +08:00
e1d64cf896
The app boot should call `create()`
17 lines
427 B
JavaScript
17 lines
427 B
JavaScript
// discourse-skip-module
|
|
|
|
(function() {
|
|
if (window.unsupportedBrowser) {
|
|
throw "Unsupported browser detected";
|
|
}
|
|
let Discourse = requirejs("discourse/app").default.create();
|
|
|
|
// required for our template compiler
|
|
window.__DISCOURSE_RAW_TEMPLATES = requirejs(
|
|
"discourse-common/lib/raw-templates"
|
|
).__DISCOURSE_RAW_TEMPLATES;
|
|
|
|
// ensure Discourse is added as a global
|
|
window.Discourse = Discourse;
|
|
})();
|