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> </body>
</html>` </html>`
if (targetWindow && !targetWindow.closed) {
// Write directly into the already-open window (avoids popup blocker)
targetWindow.document.open()
targetWindow.document.write(html)
targetWindow.document.close()
} else {
const blob = new Blob([html], { type: "text/html" }) const blob = new Blob([html], { type: "text/html" })
const url = URL.createObjectURL(blob) const url = URL.createObjectURL(blob)
if (targetWindow && !targetWindow.closed) {
// Navigate the already-open window to the blob URL (proper navigation with back/close in webapp)
targetWindow.location.href = url
} else {
window.open(url, "_blank") window.open(url, "_blank")
} }
} }