mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 16:47:15 +02:00
code review: not all windows have tabs
This commit is contained in:
parent
cc7cd41c5c
commit
429d3f5017
@ -789,6 +789,11 @@ vAPI.tabs.getAll = function(window) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// This can happens if a tab-less window is currently opened.
|
||||||
|
if ( !tabBrowser.tabs ) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
for ( tab of tabBrowser.tabs ) {
|
for ( tab of tabBrowser.tabs ) {
|
||||||
tabs.push(tab);
|
tabs.push(tab);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user