stuff
This commit is contained in:
parent
c411096ed7
commit
befc5c8d46
|
@ -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
|
@ -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, {
|
||||||
|
|
Loading…
Reference in New Issue