Fix: avoid empty search param

This commit is contained in:
eight 2020-02-01 17:59:51 +08:00
parent fa487bfaba
commit c2ac963232

View File

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