mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-05-02 04:16:24 +00:00
Update storage-overview.tsx
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user