chore(review): rename openURL

This commit is contained in:
AAGaming 2023-12-09 18:48:14 -05:00
parent f5b8a5068b
commit 07f9cca1e2
No known key found for this signature in database
GPG key ID: 00CFCD925A3E0C50
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -49,7 +49,7 @@ export async function execSteamURL(url: string): Promise<void> {
);
}
export async function openURL(url: string) {
export async function steamOpenURL(url: string) {
await execSteamURL(`steam://openurl/${url}`);
}