summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorSaturnino Abril <saturnino.abril@gmail.com>2017-06-30 23:29:14 +0800
committerGitHub <noreply@github.com>2017-06-30 23:29:14 +0800
commit6b77a054c25acb0437a58107c4592ad66c830993 (patch)
treeacc17f00c621993c427de5496180063f0a0e0c55 /webapp/utils
parentc2cef78f049e512d4543c584a26f8a52e9ca780c (diff)
downloadchat-6b77a054c25acb0437a58107c4592ad66c830993.tar.gz
chat-6b77a054c25acb0437a58107c4592ad66c830993.tar.bz2
chat-6b77a054c25acb0437a58107c4592ad66c830993.zip
remove font setting and default to Open Sans (#6643)
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/constants.jsx14
-rw-r--r--webapp/utils/utils.jsx16
2 files changed, 0 insertions, 30 deletions
diff --git a/webapp/utils/constants.jsx b/webapp/utils/constants.jsx
index 212eedda4..cc0d2bf10 100644
--- a/webapp/utils/constants.jsx
+++ b/webapp/utils/constants.jsx
@@ -707,20 +707,6 @@ export const Constants = {
}
],
DEFAULT_CODE_THEME: 'github',
- FONTS: {
- 'Droid Serif': 'font--droid_serif',
- 'Roboto Slab': 'font--roboto_slab',
- Lora: 'font--lora',
- Arvo: 'font--arvo',
- 'Open Sans': 'font--open_sans',
- Roboto: 'font--roboto',
- 'PT Sans': 'font--pt_sans',
- Lato: 'font--lato',
- 'Source Sans Pro': 'font--source_sans_pro',
- 'Exo 2': 'font--exo_2',
- Ubuntu: 'font--ubuntu'
- },
- DEFAULT_FONT: 'Open Sans',
KeyCodes: {
BACKSPACE: 8,
TAB: 9,
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) {