Skip to content

Commit

Permalink
fix settings save
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jul 27, 2023
1 parent dd58cb7 commit 669749c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,7 @@ function saveSettings(e) {
var targ = e.currentTarget || e.srcElement || e;
var data = new FormData(targ)
e.preventDefault()
var params = new URLSearchParams(data).toString()
request(targ.target, params, function(res) {
request(targ.target, data, function(res) {
["endlessScrolling", "autoLoad"].map(function(x) {
localStorage.setItem(x, data.get(x)=="on")
})
Expand Down

0 comments on commit 669749c

Please sign in to comment.