Update TGBeta.ps1

This commit is contained in:
2025-01-05 21:44:07 -05:00
parent 5eeccb80f1
commit 6619964ac7

View File

@@ -868,8 +868,7 @@ function GetHtmlContent {
// Intercept window close or refresh // Intercept window close or refresh
window.addEventListener('beforeunload', (event) => { window.addEventListener('beforeunload', (event) => {
endSession(); // Clean up on window close endSession(); // Clean up on window close
// Uncomment below for a confirmation dialog
event.returnValue = "Are you sure you want to leave?";
}); });
function appendLog(message, color = "white") { function appendLog(message, color = "white") {