Update TGBeta.ps1
This commit is contained in:
@@ -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") {
|
||||||
|
|||||||
Reference in New Issue
Block a user