diff --git a/assets/typescript/Forum/Posting.ts b/assets/typescript/Forum/Posting.ts index 0b17c68e..f55b989b 100644 --- a/assets/typescript/Forum/Posting.ts +++ b/assets/typescript/Forum/Posting.ts @@ -20,7 +20,7 @@ function forumPostingInit(): void window.addEventListener("beforeunload", (e) => { if (postingText.value.length > 0) { const message: string = 'Are you sure you want to close the tab?'; - e.returnValue = 'Are you sure you want to close the tab?'; + e.returnValue = message; return message; } });