From 9d48b5ddee05eb74017e3440c7e1eda643a4d1e8 Mon Sep 17 00:00:00 2001 From: jl Date: Tue, 12 May 2020 09:42:33 +0200 Subject: [PATCH] fix: use "write" instead of "writeJSON" to mitigate possible memory leak --- apps/files/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/files.js b/apps/files/files.js index 6ccbe80df..ab259d6df 100644 --- a/apps/files/files.js +++ b/apps/files/files.js @@ -201,7 +201,7 @@ function showSortAppsManually() { function setSortorder(app, val) { app = store.readJSON(app.id + '.info', 1); app.sortorder = val; - store.writeJSON(app.id + '.info', app); + store.write(app.id + '.info', JSON.stringify(app)); } function getAppsList() {