Update OpenSteamLinksInApp.plugin.js
This commit is contained in:
parent
7e4e58c01d
commit
bb30e32fa3
|
@ -95,7 +95,8 @@ module.exports = (_ => {
|
||||||
|
|
||||||
openInSteam (url) {
|
openInSteam (url) {
|
||||||
BDFDB.LibraryRequires.request(url, (error, response, body) => {
|
BDFDB.LibraryRequires.request(url, (error, response, body) => {
|
||||||
if (BDFDB.LibraryRequires.electron.shell.openExternal("steam://openurl/" + response.request.href));
|
if (error) return;
|
||||||
|
else if (BDFDB.LibraryRequires.electron.shell.openExternal("steam://openurl/" + response.request.href));
|
||||||
else BDFDB.DiscordUtils.openLink(response.request.href);
|
else BDFDB.DiscordUtils.openLink(response.request.href);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue