mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add gjs support for themes (#23473)
This commit is contained in:
@@ -149,6 +149,7 @@ class ThemeField < ActiveRecord::Base
|
||||
js_compiler.append_module(
|
||||
js,
|
||||
"discourse/initializers/#{initializer_name}",
|
||||
"js",
|
||||
include_variables: true,
|
||||
)
|
||||
rescue ThemeJavascriptCompiler::CompileError => ex
|
||||
@@ -276,6 +277,7 @@ class ThemeField < ActiveRecord::Base
|
||||
js_compiler.append_module(
|
||||
js,
|
||||
"discourse/pre-initializers/theme-#{theme_id}-translations",
|
||||
"js",
|
||||
include_variables: false,
|
||||
)
|
||||
rescue ThemeTranslationParser::InvalidYaml => e
|
||||
|
||||
Reference in New Issue
Block a user