From a75859c61974f2481df57be39a2170c6d718d56f Mon Sep 17 00:00:00 2001 From: hellosamyak Date: Tue, 24 Mar 2026 00:42:36 +0530 Subject: [PATCH] remove TS type annotation from URL handler and make it synchronous --- app/main.dev.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.dev.js b/app/main.dev.js index efba093..73d0294 100644 --- a/app/main.dev.js +++ b/app/main.dev.js @@ -128,11 +128,11 @@ const createWindow = async () => { // Shared handler to take a URL and determine if we should open it in the user's // browser (returns true), or if we let electron handle it normally (false). - async function handleUrl(url: string) { + function handleUrl(url) { try { const parsedUrl = new URL(url); const { protocol } = parsedUrl; - if (protocol === "http:" || protocol === "https:") { + if (protocol === 'http:' || protocol === 'https:') { shell.openExternal(url); // Open in external browser return true; }