mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-08-06 04:46:49 +02:00
Links in the about window now open in the user's default browser. fixes #360
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import Store from "electron-store";
|
||||
|
||||
import { BrowserWindow } from "electron";
|
||||
import { BrowserWindow, shell } from "electron";
|
||||
import path from "path";
|
||||
import { settings } from "../constants/settings";
|
||||
|
||||
@@ -134,6 +134,10 @@ export const createSettingsWindow = function () {
|
||||
|
||||
settingsWindow.loadURL(`file://${__dirname}/../pages/settings/settings.html`);
|
||||
|
||||
settingsWindow.webContents.setWindowOpenHandler(({ url }) => {
|
||||
shell.openExternal(url);
|
||||
return { action: "deny" };
|
||||
});
|
||||
settingsModule.settingsWindow = settingsWindow;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user