BugFix in SteamProfileLink

This commit is contained in:
Mirco Wittrien 2018-12-18 14:05:53 +01:00
parent 7b88b80c14
commit c665d8031c
1 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ class SteamProfileLink {
getDescription () {return "Opens any Steam links in Steam instead of your internet browser.";} getDescription () {return "Opens any Steam links in Steam instead of your internet browser.";}
getVersion () {return "1.0.3";} getVersion () {return "1.0.4";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -33,10 +33,10 @@ class SteamProfileLink {
BDFDB.loadMessage(this); BDFDB.loadMessage(this);
$(document).on("click." + this.getName(), "a[href^='https://steamcommunity.'],a[href^='https://store.steampowered.']", (e) => { $(document).on("click." + this.getName(), "a[href^='https://steamcommunity.'],a[href^='https://store.steampowered.']", (e) => {
if (require("electron").shell.openExternal("steam://openurl/" + e.currentTarget.href)) { e.preventDefault();
e.preventDefault(); e.stopImmediatePropagation();
e.stopImmediatePropagation(); if (require("electron").shell.openExternal("steam://openurl/" + e.currentTarget.href));
} else window.open(e.currentTarget.href, "_blank");
}); });
} }
else { else {