From c2ac963232dab76709017d1088b2fe5c866c2d23 Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 1 Feb 2020 17:59:51 +0800 Subject: [PATCH] Fix: avoid empty search param --- popup/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/popup/popup.js b/popup/popup.js index 86642e73..7283cb9b 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -583,7 +583,7 @@ Object.assign(handleEvent, { // FIXME: this only works if popup is closed this.eventHandled = true; API.openManage({ - search: event.shiftKey || event.button === 2 ? + search: tabURL && (event.shiftKey || event.button === 2) ? `url:${tabURL}` : null }); window.close();