This commit is contained in:
Mirco Wittrien 2019-11-30 11:00:58 +01:00
parent c411096ed7
commit befc5c8d46
3 changed files with 5 additions and 5 deletions

View File

@ -3998,7 +3998,7 @@ var BDFDB = {
BDFDB.DiscordUtils = {}; BDFDB.DiscordUtils = {};
BDFDB.DiscordUtils.openLink = function (url, inbuilt) { BDFDB.DiscordUtils.openLink = function (url, inbuilt) {
if (inbuilt) window.open(url, "_blank"); if (!inbuilt) window.open(url, "_blank");
else { else {
let browserWindow = new LibraryRequires.electron.remote.BrowserWindow({ let browserWindow = new LibraryRequires.electron.remote.BrowserWindow({
frame: true, frame: true,

File diff suppressed because one or more lines are too long

View File

@ -3,7 +3,7 @@
class GoogleSearchReplace { class GoogleSearchReplace {
getName () {return "GoogleSearchReplace";} getName () {return "GoogleSearchReplace";}
getVersion () {return "1.2.2";} getVersion () {return "1.2.3";}
getAuthor () {return "DevilBro";} getAuthor () {return "DevilBro";}
@ -138,9 +138,9 @@ class GoogleSearchReplace {
let useChromium = BDFDB.DataUtils.get(this, "settings", "useChromium"); let useChromium = BDFDB.DataUtils.get(this, "settings", "useChromium");
if (!event.shiftKey) BDFDB.ContextMenuUtils.close(e.instance); if (!event.shiftKey) BDFDB.ContextMenuUtils.close(e.instance);
if (key == "_all") { if (key == "_all") {
for (let key2 in engines) if (key2 != "_all" && engines[key2]) BDFDB.DiscordUtils.openLink(this.defaults.engines[key2].url.replace(this.textUrlReplaceString, encodeURIComponent(url)), useChromium); for (let key2 in engines) if (key2 != "_all" && engines[key2]) BDFDB.DiscordUtils.openLink(this.defaults.engines[key2].url.replace(this.textUrlReplaceString, encodeURIComponent(text)), useChromium);
} }
else BDFDB.DiscordUtils.openLink(this.defaults.engines[key].url.replace(this.textUrlReplaceString, encodeURIComponent(url)), useChromium); else BDFDB.DiscordUtils.openLink(this.defaults.engines[key].url.replace(this.textUrlReplaceString, encodeURIComponent(text)), useChromium);
} }
})); }));
if (!items.length) items.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItem, { if (!items.length) items.push(BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.ContextMenuItem, {