From 6d543f4b2b9d6d25d6ce6143be875f48c945a03a Mon Sep 17 00:00:00 2001 From: flashwave Date: Wed, 5 Jun 2019 17:11:12 +0200 Subject: [PATCH] // did you know that i'm fucking braindead --- assets/typescript/Forum/Posting.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } });