Refresh after PPR logged

This commit is contained in:
2025-02-23 19:13:02 +00:00
parent faec70c562
commit 1bd87c9d1b

View File

@@ -198,7 +198,13 @@ $conn->close();
<script>
function openPopup() {
window.open("input.html", "PopupWindow", "toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=600, height=1100");
popup = window.open("input.html", "PopupWindow", "toolbar=no, location=no, directories=no,status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, width=600, height=1100");
const checkPopup = setInterval(() => {
if (popup && popup.closed) {
clearInterval(checkPopup);
window.location.reload(); // Reload parent window
}
}, 500); // Check every 500ms
}
</script>