Skip to content
Snippets Groups Projects
Commit 7047ec6d authored by Martin Schoeler's avatar Martin Schoeler
Browse files

fix for the custom css

parent 4de5753d
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ RocketChat.theme = new class ...@@ -69,7 +69,7 @@ RocketChat.theme = new class
RocketChat.settings.get '*', Meteor.bindEnvironment (key, value, initialLoad) => RocketChat.settings.get '*', Meteor.bindEnvironment (key, value, initialLoad) =>
if key is 'theme-custom-css' if key is 'theme-custom-css'
if value?.trim() isnt '' if value?
@customCSS = value @customCSS = value
else if /^theme-.+/.test(key) is true else if /^theme-.+/.test(key) is true
name = key.replace /^theme-[a-z]+-/, '' name = key.replace /^theme-[a-z]+-/, ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment