Update OpenSteamLinksInApp.plugin.js
This commit is contained in:
parent
7e4e58c01d
commit
bb30e32fa3
|
@ -95,10 +95,11 @@ module.exports = (_ => {
|
|||
|
||||
openInSteam (url) {
|
||||
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);
|
||||
});
|
||||
}
|
||||
};
|
||||
})(window.BDFDB_Global.PluginUtils.buildPlugin(config));
|
||||
})();
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue