diff --git a/src/frontend/src/views/Authorized.tsx b/src/frontend/src/views/Authorized.tsx index 59440dcb40..535b00f753 100644 --- a/src/frontend/src/views/Authorized.tsx +++ b/src/frontend/src/views/Authorized.tsx @@ -17,7 +17,7 @@ function Authorized() { // First case: authCode is passed // return to get user details if (authCode !== null) { - window.opener.postMessage({ authCode, state }, '*'); + window?.opener?.postMessage({ authCode, state }, '*'); window.close(); return; } diff --git a/src/frontend/vite.config.ts b/src/frontend/vite.config.ts index b8d94b05dd..ecd2f35288 100644 --- a/src/frontend/vite.config.ts +++ b/src/frontend/vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig(({ mode }) => { devOptions: { enabled: true, }, - selfDestroying: true, + selfDestroying: false, }), ], server: {