We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c37dc commit 7287f4bCopy full SHA for 7287f4b
.changeset/lovely-bikes-brush.md
@@ -0,0 +1,5 @@
1
+---
2
+"@spotlightjs/spotlight": patch
3
4
+
5
+open external links in default browser
packages/spotlight/src/electron/main/index.ts
@@ -166,6 +166,14 @@ const createWindow = () => {
166
win = null;
167
});
168
169
+ // Open external links in the default browser
170
+ win.webContents.setWindowOpenHandler(details => {
171
+ shell.openExternal(details.url).catch(error => {
172
+ Sentry.captureException(error);
173
+ });
174
+ return { action: "deny" };
175
176
177
win.webContents.on("did-finish-load", () => {
178
app.setBadgeCount(0);
179
/**
0 commit comments