font-change bug
This commit is contained in:
parent
fa616d56fd
commit
ea735d279f
|
@ -99,14 +99,14 @@ function settings() {
|
||||||
var fontd = $('#font').val()
|
var fontd = $('#font').val()
|
||||||
if (fontd) {
|
if (fontd) {
|
||||||
if (fontd != localStorage.getItem('font')) {
|
if (fontd != localStorage.getItem('font')) {
|
||||||
M.toast({ html: lang.lang_setting_font.replace('{{set}}', ct), displayLength: 3000 })
|
M.toast({ html: lang.lang_setting_font.replace('{{set}}', fontd), displayLength: 3000 })
|
||||||
}
|
}
|
||||||
localStorage.setItem('font', fontd)
|
localStorage.setItem('font', fontd)
|
||||||
themes()
|
themes()
|
||||||
} else {
|
} else {
|
||||||
if (localStorage.getItem('font')) {
|
if (localStorage.getItem('font')) {
|
||||||
localStorage.removeItem('font')
|
localStorage.removeItem('font')
|
||||||
M.toast({ html: lang.lang_setting_font.replace('{{set}}', ct), displayLength: 3000 })
|
M.toast({ html: lang.lang_setting_font.replace('{{set}}', fontd), displayLength: 3000 })
|
||||||
themes()
|
themes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user