From 1ea4a7ea6461018263b16f9448bfb83364b71da1 Mon Sep 17 00:00:00 2001 From: Junseo Park Date: Mon, 17 May 2021 00:36:44 +0900 Subject: [PATCH] fix: added missing argument --- components/Navbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 65fb104..d0644ee 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -127,7 +127,7 @@ const Navbar = ({ token, pwa }:{ token: string, pwa: boolean }): JSX.Element => { localStorage.redirectTo = window.location.href setNavbarOpen(false) - if(pwa) window.open('/api/auth/discord') + if(pwa) window.open('/api/auth/discord', '_blank') else redirectTo(router, 'login') }} className='lg:hover:text-gray-300 flex items-center px-3 py-4 w-full hover:text-gray-500 text-gray-700 text-sm font-semibold sm:w-auto lg:py-2 lg:text-gray-100 cursor-pointer outline-none'> 로그인 @@ -200,7 +200,7 @@ const Navbar = ({ token, pwa }:{ token: string, pwa: boolean }): JSX.Element => : { localStorage.redirectTo = window.location.href setNavbarOpen(false) - if(pwa) window.open('/api/auth/discord') + if(pwa) window.open('/api/auth/discord', '_blank') else redirectTo(router, 'login') }} className='flex items-center px-8 py-2 text-gray-100 hover:text-gray-300'>