From 7e7463de9052424501385f44c3d68f7243ee80f2 Mon Sep 17 00:00:00 2001 From: schlagmichdoch Date: Wed, 18 Jan 2023 22:42:47 +0100 Subject: [PATCH] delete cached files after query; consistency updates --- public/scripts/ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/scripts/ui.js b/public/scripts/ui.js index 8b565e8..112c79f 100644 --- a/public/scripts/ui.js +++ b/public/scripts/ui.js @@ -1153,9 +1153,11 @@ class WebShareTargetUI { console.debug(files) Events.fire('activate-paste-mode', {files: files, text: ""}) }) + caches.delete("share_target_files").then( _ => console.log("shared files deleted from cache")); } - history.pushState({}, 'URL Rewrite', '/'); + window.history.replaceState({}, "Rewrite URL", '/'); //remove room_key from url } + } } @@ -1226,7 +1228,7 @@ class PersistentStorage { } logBrowserNotCapable() { - console.log("This browser does not support IndexedDB. Paired devices will be gone after closing the browser."); + console.log("This browser does not support IndexedDB. Paired devices will be gone after the browser is closed."); } static set(key, value) {