summaryrefslogtreecommitdiff
path: root/ext/bg/js/backend.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-02-09 21:06:59 +0200
committersiikamiika <siikamiika@users.noreply.github.com>2020-02-09 21:51:33 +0200
commit9fbd47e4eaeee2f1121cdeae08dbc5439b247498 (patch)
tree88a344c19ceb84a69717fb1d9510fc9fe3c32405 /ext/bg/js/backend.js
parent722a2a4bce08ae2e69d7abb1c5d09842bd29ebfa (diff)
rename sameTab --> existingOrNewTab
Diffstat (limited to 'ext/bg/js/backend.js')
-rw-r--r--ext/bg/js/backend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/backend.js b/ext/bg/js/backend.js
index bdb8a76a..f94463aa 100644
--- a/ext/bg/js/backend.js
+++ b/ext/bg/js/backend.js
@@ -597,7 +597,7 @@ class Backend {
// Command handlers
async _onCommandSearch(params) {
- const {mode, query} = params || {mode: 'sameTab'};
+ const {mode, query} = params || {mode: 'existingOrNewTab'};
const options = await this.getOptions(this.optionsContext);
const {popupWidth, popupHeight} = options.general;
@@ -609,7 +609,7 @@ class Backend {
const url = `${baseUrl}?${queryString}`;
switch (mode) {
- case 'sameTab':
+ case 'existingOrNewTab':
try {
const tab = await Backend._findTab(1000, (url2) => (
url2 !== null &&