1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Allow steam:// protocol links

This commit is contained in:
tobspr 2022-06-15 12:28:14 +02:00
parent f9fa3cd6a7
commit 918dd5dc25

View File

@ -155,7 +155,7 @@ function createWindow() {
win.webContents.on("new-window", (event, pth) => { win.webContents.on("new-window", (event, pth) => {
event.preventDefault(); event.preventDefault();
if (pth.startsWith("https://")) { if (pth.startsWith("https://") || pth.startsWith("steam://")) {
shell.openExternal(pth); shell.openExternal(pth);
} }
}); });