fix font name with spaces not loading

This commit is contained in:
zombieFox 2022-05-24 18:34:56 +01:00
parent d5da194342
commit 369bc67d52
1 changed files with 2 additions and 6 deletions

View File

@ -8,10 +8,6 @@ import './index.css';
export const Theme = function() {
this.node = {
html: document.querySelector('html')
}
this.style = () => {
applyCSSVar('--theme-scale', config.theme.scale);
@ -33,7 +29,7 @@ export const Theme = function() {
applyCSSVar('--theme-easing-bounce', `${config.theme.easing.bounce[0]}, ${config.theme.easing.bounce[1]}, ${config.theme.easing.bounce[2]}, ${config.theme.easing.bounce[3]}`);
applyCSSVar('--theme-font', config.theme.font);
applyCSSVar('--theme-font', `"${config.theme.font}"`);
applyCSSVar('--theme-bookmark-background-color-hsla-h', config.theme.bookmark.background.color.hsla[0]);
applyCSSVar('--theme-bookmark-background-color-hsla-s', config.theme.bookmark.background.color.hsla[1]);
@ -55,4 +51,4 @@ export const Theme = function() {
}
}
}