2020-05-01 15:18:41 -04:00
|
|
|
// discourse-skip-module
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
if (window.unsupportedBrowser) {
|
|
|
|
throw "Unsupported browser detected";
|
|
|
|
}
|
2020-05-05 14:54:13 -04:00
|
|
|
let Discourse = requirejs("discourse/app").default.create();
|
2020-05-01 15:18:41 -04:00
|
|
|
|
2020-05-05 12:15:03 -04:00
|
|
|
// required for our template compiler
|
|
|
|
window.__DISCOURSE_RAW_TEMPLATES = requirejs(
|
|
|
|
"discourse-common/lib/raw-templates"
|
|
|
|
).__DISCOURSE_RAW_TEMPLATES;
|
|
|
|
|
2020-05-01 15:18:41 -04:00
|
|
|
// ensure Discourse is added as a global
|
|
|
|
window.Discourse = Discourse;
|
|
|
|
})();
|