fix: use "write" instead of "writeJSON" to mitigate possible memory leak

master
jl 2020-05-12 09:42:33 +02:00
parent ea2962a226
commit 9d48b5ddee
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ function showSortAppsManually() {
function setSortorder(app, val) { function setSortorder(app, val) {
app = store.readJSON(app.id + '.info', 1); app = store.readJSON(app.id + '.info', 1);
app.sortorder = val; app.sortorder = val;
store.writeJSON(app.id + '.info', app); store.write(app.id + '.info', JSON.stringify(app));
} }
function getAppsList() { function getAppsList() {