diff --git a/spec/models/theme_spec.rb b/spec/models/theme_spec.rb index ba0b91e9ddc..5cffdb7fefa 100644 --- a/spec/models/theme_spec.rb +++ b/spec/models/theme_spec.rb @@ -326,7 +326,7 @@ HTML } })(); if ('Discourse' in window && typeof Discourse._registerPluginCode === 'function') { - var themeSetting = Discourse.__container__.lookup("service:theme-settings").getObjectForTheme(#{theme.id}); + var settings = Discourse.__container__.lookup("service:theme-settings").getObjectForTheme(#{theme.id}); var themePrefix = function themePrefix(key) { return 'theme_translations.#{theme.id}.' + key; }; @@ -352,7 +352,7 @@ HTML } })(); if ('Discourse' in window && typeof Discourse._registerPluginCode === 'function') { - var themeSetting = Discourse.__container__.lookup("service:theme-settings").getObjectForTheme(#{theme.id}); + var settings = Discourse.__container__.lookup("service:theme-settings").getObjectForTheme(#{theme.id}); var themePrefix = function themePrefix(key) { return 'theme_translations.#{theme.id}.' + key; };