[HTML5] Fix web editor "clear persistent data".
Was broken after update to new persistent path "/home/web_user".
This commit is contained in:
parent
ad293a82f1
commit
7866cd5881
1 changed files with 2 additions and 4 deletions
6
misc/dist/html/editor.html
vendored
6
misc/dist/html/editor.html
vendored
|
@ -262,9 +262,7 @@
|
|||
return;
|
||||
}
|
||||
Promise.all([
|
||||
deleteDB("/home/web_user/projects"),
|
||||
deleteDB("/home/web_user/.config"),
|
||||
deleteDB("/home/web_user/.cache"),
|
||||
deleteDB("/home/web_user"),
|
||||
]).then(function(results) {
|
||||
alert("Done.");
|
||||
}).catch(function (err) {
|
||||
|
@ -326,7 +324,7 @@
|
|||
|
||||
function startEditor(zip) {
|
||||
const INDETERMINATE_STATUS_STEP_MS = 100;
|
||||
const persistentPaths = ['/home/web_user/'];
|
||||
const persistentPaths = ['/home/web_user'];
|
||||
|
||||
var editorCanvas = document.getElementById('editor-canvas');
|
||||
var gameCanvas = document.getElementById('game-canvas');
|
||||
|
|
Loading…
Reference in a new issue