fix settings save

This commit is contained in:
Ryan Stafford 2023-07-26 22:33:06 -04:00
parent dd58cb7e55
commit 669749c12e

View file

@ -296,8 +296,7 @@ function saveSettings(e) {
var targ = e.currentTarget || e.srcElement || e; var targ = e.currentTarget || e.srcElement || e;
var data = new FormData(targ) var data = new FormData(targ)
e.preventDefault() e.preventDefault()
var params = new URLSearchParams(data).toString() request(targ.target, data, function(res) {
request(targ.target, params, function(res) {
["endlessScrolling", "autoLoad"].map(function(x) { ["endlessScrolling", "autoLoad"].map(function(x) {
localStorage.setItem(x, data.get(x)=="on") localStorage.setItem(x, data.get(x)=="on")
}) })