|
@@ -34,7 +34,7 @@ singlefile.ui.button = (() => {
|
|
|
if (!tabs.length) {
|
|
if (!tabs.length) {
|
|
|
singlefile.ui.saveTab(tab);
|
|
singlefile.ui.saveTab(tab);
|
|
|
} else {
|
|
} else {
|
|
|
- tabs.forEach(tab => singlefile.core.isAllowedURL(tab.url) && singlefile.ui.saveTab(tab));
|
|
|
|
|
|
|
+ tabs.forEach(tab => (tab.active || tab.highlighted) && singlefile.core.isAllowedURL(tab.url) && singlefile.ui.saveTab(tab));
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|