mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
fix #168: Firefox for Android does not support the windows API
This commit is contained in:
parent
9130a026b1
commit
60ee64e4bb
1 changed files with 3 additions and 1 deletions
|
|
@ -490,7 +490,9 @@ vAPI.tabs.open = function(details) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Open in a standalone window
|
// Open in a standalone window
|
||||||
if ( details.popup === true ) {
|
// https://github.com/uBlockOrigin/uBlock-issues/issues/168#issuecomment-413038191
|
||||||
|
// Not all platforms support browser.windows API.
|
||||||
|
if ( details.popup === true && chrome.windows instanceof Object ) {
|
||||||
chrome.windows.create({ url: details.url, type: 'popup' });
|
chrome.windows.create({ url: details.url, type: 'popup' });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue