mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Fix homepage's Config tab not saving some options
Resolved #211 Bumped v1 version string and rebuilt client asset
This commit is contained in:
parent
49ec795941
commit
0caa669980
2
dist/js/home.js
vendored
2
dist/js/home.js
vendored
File diff suppressed because one or more lines are too long
2
dist/js/home.js.map
vendored
2
dist/js/home.js.map
vendored
File diff suppressed because one or more lines are too long
@ -1039,11 +1039,11 @@ page.prepareUploadConfig = () => {
|
||||
value = form.elements[key].value
|
||||
} else if (config[key].number !== undefined) {
|
||||
const parsed = parseInt(form.elements[key].value)
|
||||
if (!isNaN(parsed))
|
||||
if (!isNaN(parsed) && parsed !== config[key].number.default)
|
||||
value = Math.min(Math.max(parsed, config[key].number.min), config[key].number.max)
|
||||
}
|
||||
|
||||
if (value !== undefined && config[key].number && value !== config[key].number.default)
|
||||
if (value !== undefined)
|
||||
localStorage[lsKeys[key]] = value
|
||||
else
|
||||
localStorage.removeItem(lsKeys[key])
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"1": "1592600474",
|
||||
"1": "1592829902",
|
||||
"2": "1589010026",
|
||||
"3": "1581416390",
|
||||
"4": "1581416390",
|
||||
|
Loading…
Reference in New Issue
Block a user