diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-06-30 23:29:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-30 23:29:14 +0800 |
commit | 6b77a054c25acb0437a58107c4592ad66c830993 (patch) | |
tree | acc17f00c621993c427de5496180063f0a0e0c55 /webapp/utils/utils.jsx | |
parent | c2cef78f049e512d4543c584a26f8a52e9ca780c (diff) | |
download | chat-6b77a054c25acb0437a58107c4592ad66c830993.tar.gz chat-6b77a054c25acb0437a58107c4592ad66c830993.tar.bz2 chat-6b77a054c25acb0437a58107c4592ad66c830993.zip |
remove font setting and default to Open Sans (#6643)
Diffstat (limited to 'webapp/utils/utils.jsx')
-rw-r--r-- | webapp/utils/utils.jsx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx index 16edbecdc..56482a0fb 100644 --- a/webapp/utils/utils.jsx +++ b/webapp/utils/utils.jsx @@ -732,22 +732,6 @@ export function resetTheme() { applyTheme(Constants.THEMES.default); } -export function applyFont(fontName) { - const body = $('body'); - - for (const key of Reflect.ownKeys(Constants.FONTS)) { - const className = Constants.FONTS[key]; - - if (fontName === key) { - if (!body.hasClass(className)) { - body.addClass(className); - } - } else { - body.removeClass(className); - } - } -} - export function changeCss(className, classValue) { let styleEl = document.querySelector('style[data-class="' + className + '"]'); if (!styleEl) { |