From 9f60030e39feecc76f11671a4b9d82303c83670c Mon Sep 17 00:00:00 2001 From: Agando Date: Tue, 9 Jun 2026 06:00:43 +0200 Subject: auto: 2026-06-09_06:00 changes --- modules/core/virtual-fs.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/core/virtual-fs.js') diff --git a/modules/core/virtual-fs.js b/modules/core/virtual-fs.js index cb8020a..f6e2826 100644 --- a/modules/core/virtual-fs.js +++ b/modules/core/virtual-fs.js @@ -545,6 +545,13 @@ class VirtualFileSystem { mkdir(path) { return this.mkdirRecursive(path); } list(path) { return this.ls(path); } dir(path) { return this.ls(path); } + reset() { + this.root = { type: 'dir', content: {} }; + this.currentPath = []; + // Wipe all localStorage keys + ['webx11_filesystem', 'webx11_filesystem_v2'].forEach(k => localStorage.removeItem(k)); + return true; + } } // Also expose for module system -- cgit v1.2.3