Merge pull request #45885 from Faless/js/4.x_editor_clean_fix
[HTML5] Fix web editor "clear persistent data".
This commit is contained in:
commit
b3c7e38f4d
|
@ -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) {
|
||||||
|
@ -326,7 +324,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');
|
||||||
|
|
Loading…
Reference in New Issue