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();