Jelajahi Sumber

added test for Edge

Gildas 7 tahun lalu
induk
melakukan
f8845b4426
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      extension/ui/bg/ui-button.js

+ 1 - 1
extension/ui/bg/ui-button.js

@@ -34,7 +34,7 @@ singlefile.ui.button = (() => {
 			if (!tabs.length) {
 				singlefile.ui.saveTab(tab);
 			} 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));
 			}
 		}
 	});