discourse/app/assets/javascripts/app-boot.js

Failed to ignore revisions in .git-blame-ignore-revs.

17 lines
427 B
JavaScript
Raw Normal View History

// 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;
})();