We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68226bd commit d36fa4cCopy full SHA for d36fa4c
src/models/ServiceBrowserView.ts
@@ -12,6 +12,7 @@ import { buildMenuTpl } from '../electron/serviceContextMenuTemplate';
12
import { IPC } from '../features/todos/constants';
13
import { getRecipeDirectory, loadRecipeConfig } from '../helpers/recipe-helpers';
14
import { isMac } from '../environment';
15
+import { isValidExternalURL } from '../helpers/url-helpers';
16
17
const debug = require('debug')('Franz:Models:ServiceBrowserView');
18
@@ -252,7 +253,9 @@ export class ServiceBrowserView {
252
253
} else if (disposition === 'background-tab' || disposition === 'foreground-tab') {
254
action = 'deny';
255
- shell.openExternal(url);
256
+ if (isValidExternalURL(url)) {
257
+ shell.openExternal(url);
258
+ }
259
}
260
261
return {
0 commit comments