restore correct handling of openEditInWindow

regressed in fdbfb235
fixes #1156
This commit is contained in:
tophf 2021-01-19 09:26:10 +03:00
parent a66a1f8ed6
commit a88996be6f

View File

@ -59,7 +59,7 @@ addAPI(/** @namespace API */ {
const tab = await openURL({ const tab = await openURL({
url: `${u}`, url: `${u}`,
currentWindow: null, currentWindow: null,
newWindow: Object.assign(wndBase, !ffBug && wndPos), newWindow: wnd && Object.assign(wndBase, !ffBug && wndPos),
}); });
if (ffBug) await browser.windows.update(tab.windowId, wndPos); if (ffBug) await browser.windows.update(tab.windowId, wndPos);
return tab; return tab;