[HTML5] Fix web editor "clear persistent data".

Was broken after update to new persistent path "/home/web_user".

(cherry picked from commit 7866cd5881)
This commit is contained in:
Fabio Alessandrelli 2021-02-08 18:09:15 +01:00 committed by Rémi Verschelde
parent 347a9df0a1
commit cd2a996d9e
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -262,9 +262,7 @@
return; return;
} }
Promise.all([ Promise.all([
deleteDB("/home/web_user/projects"), deleteDB("/home/web_user"),
deleteDB("/home/web_user/.config"),
deleteDB("/home/web_user/.cache"),
]).then(function(results) { ]).then(function(results) {
alert("Done."); alert("Done.");
}).catch(function (err) { }).catch(function (err) {
@ -327,7 +325,7 @@
function startEditor(zip) { function startEditor(zip) {
const INDETERMINATE_STATUS_STEP_MS = 100; const INDETERMINATE_STATUS_STEP_MS = 100;
const persistentPaths = ['/home/web_user/']; const persistentPaths = ['/home/web_user'];
var editorCanvas = document.getElementById('editor-canvas'); var editorCanvas = document.getElementById('editor-canvas');
var gameCanvas = document.getElementById('game-canvas'); var gameCanvas = document.getElementById('game-canvas');