mirror of
https://github.com/tobspr/shapez.io.git
synced 2026-03-02 03:39:21 +00:00
Allow steam:// protocol links
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user