Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/main.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down