diff --git a/src/main/utils/makeLinksOpenExternally.ts b/src/main/utils/makeLinksOpenExternally.ts index f24e137..5197261 100644 --- a/src/main/utils/makeLinksOpenExternally.ts +++ b/src/main/utils/makeLinksOpenExternally.ts @@ -7,7 +7,7 @@ import { BrowserWindow, shell } from "electron"; import { Settings } from "../settings"; -import { execSteamURL, isDeckGameMode, openURL } from "./steamOS"; +import { execSteamURL, isDeckGameMode, steamOpenURL } from "./steamOS"; export function makeLinksOpenExternally(win: BrowserWindow) { win.webContents.setWindowOpenHandler(({ url }) => { @@ -33,7 +33,7 @@ export function makeLinksOpenExternally(win: BrowserWindow) { case "mailto:": case "spotify:": if (isDeckGameMode) { - openURL(url); + steamOpenURL(url); } else { shell.openExternal(url); } diff --git a/src/main/utils/steamOS.ts b/src/main/utils/steamOS.ts index 667cdf8..44eadac 100644 --- a/src/main/utils/steamOS.ts +++ b/src/main/utils/steamOS.ts @@ -49,7 +49,7 @@ export async function execSteamURL(url: string): Promise { ); } -export async function openURL(url: string) { +export async function steamOpenURL(url: string) { await execSteamURL(`steam://openurl/${url}`); }