1
0
Fork 0

Update wizard-raw-templates.js.erb

Dieser Commit ist enthalten in:
Angus McLeod 2020-10-02 19:32:18 +10:00
Ursprung 66dc55ef10
Commit dc7249cfd2

Datei anzeigen

@ -20,16 +20,14 @@ Discourse.unofficial_plugins.each do |plugin|
compiled = Barber::Precompiler.new().compile(File.read(f))
result << "
(function() {
const { addRawTemplate } = requirejs('discourse-common/lib/raw-templates');
addRawTemplate(#{compiled});
requirejs('discourse-common/lib/raw-templates').addRawTemplate(#{compiled});
})();
"
end
result << "
(function() {
const rawTemplates = requirejs('discourse-common/lib/raw-templates');
window.__DISCOURSE_RAW_TEMPLATES = rawTemplates.__DISCOURSE_RAW_TEMPLATES;
window.__DISCOURSE_RAW_TEMPLATES = requirejs('discourse-common/lib/raw-templates').__DISCOURSE_RAW_TEMPLATES;
})();
"
end