From d51dd353768f3108e62efd6691c76533f5321204 Mon Sep 17 00:00:00 2001 From: MacRimi Date: Thu, 16 Apr 2026 16:08:58 +0200 Subject: [PATCH] Update storage-overview.tsx --- AppImage/components/storage-overview.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/AppImage/components/storage-overview.tsx b/AppImage/components/storage-overview.tsx index a7e3da7d..03a0c6bc 100644 --- a/AppImage/components/storage-overview.tsx +++ b/AppImage/components/storage-overview.tsx @@ -2813,14 +2813,12 @@ ${observationsHtml} ` + const blob = new Blob([html], { type: "text/html" }) + const url = URL.createObjectURL(blob) if (targetWindow && !targetWindow.closed) { - // Write directly into the already-open window (avoids popup blocker) - targetWindow.document.open() - targetWindow.document.write(html) - targetWindow.document.close() + // Navigate the already-open window to the blob URL (proper navigation with back/close in webapp) + targetWindow.location.href = url } else { - const blob = new Blob([html], { type: "text/html" }) - const url = URL.createObjectURL(blob) window.open(url, "_blank") } }