diff --git a/CHANGELOG.md b/CHANGELOG.md index 06b16f4..374f167 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - TIDAL will now close the previous notification if a new one is sent whilst the old is still visible. [#364](https://github.com/Mastermindzh/tidal-hifi/pull/364) - Updated developer documentation to get started in README [#365](https://github.com/Mastermindzh/tidal-hifi/pull/365) -- +- Links in the about window now open in the user's default browser. fixes [#360](https://github.com/Mastermindzh/tidal-hifi/issues/360) ## [5.9.0] diff --git a/src/pages/settings/settings.html b/src/pages/settings/settings.html index a3672f8..8a97788 100644 --- a/src/pages/settings/settings.html +++ b/src/pages/settings/settings.html @@ -432,14 +432,14 @@ tidal icon

TIDAL Hi-Fi

- 5.10.0 + 5.10.0
diff --git a/src/pages/settings/settings.scss b/src/pages/settings/settings.scss index aa6722c..3be16a6 100644 --- a/src/pages/settings/settings.scss +++ b/src/pages/settings/settings.scss @@ -415,7 +415,6 @@ html { } // file upload - .file-drop-area { position: relative; display: flex; diff --git a/src/scripts/settings.ts b/src/scripts/settings.ts index 49e1996..7c0536d 100644 --- a/src/scripts/settings.ts +++ b/src/scripts/settings.ts @@ -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; };