From 939f07fa5514bff9df9ccbb6bff201668398e84f Mon Sep 17 00:00:00 2001 From: Marie Date: Sun, 6 Oct 2024 19:08:32 +0200 Subject: [PATCH] upd: fix returns --- packages/frontend/src/scripts/warning-external-website.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/scripts/warning-external-website.ts b/packages/frontend/src/scripts/warning-external-website.ts index 277656c651..5ef003cb01 100644 --- a/packages/frontend/src/scripts/warning-external-website.ts +++ b/packages/frontend/src/scripts/warning-external-website.ts @@ -43,9 +43,9 @@ export async function warningExternalWebsite(url: string) { }); if (confirm.canceled) return false; - - window.open(url, '_blank', 'nofollow noopener popup=false'); + + return window.open(url, '_blank', 'nofollow noopener popup=false'); } - return true; + return window.open(url, '_blank', 'nofollow noopener popup=false'); }