Update storage-overview.tsx

This commit is contained in:
MacRimi
2026-04-16 16:08:58 +02:00
parent 196086498e
commit d51dd35376

View File

@@ -2813,14 +2813,12 @@ ${observationsHtml}
</body>
</html>`
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")
}
}