]> git.wh0rd.org Git - chrome-ext/tabs-backup.git/commitdiff
ignore all chrome://newtab/
authorMike Frysinger <vapier@gentoo.org>
Tue, 21 Apr 2020 04:25:13 +0000 (00:25 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 21 Apr 2020 04:25:13 +0000 (00:25 -0400)
If we search for 'New Tab', it breaks when using non-English languages.

background.js

index 0f8a06cf202c259bd46b7df012bfd16f56bcd7a8..94884ecd267b4e10cfaa42a4636f286e4f4ca863 100644 (file)
@@ -180,7 +180,7 @@ function backupNow(isAutomatic, backupName, callbackDone) {
                        // only show a single window.
                        if (windowTabs.length == 1) {
                                const tab = windowTabs[0];
-                               if (tab.title == 'New Tab' && tab.url == 'chrome://newtab/')
+                               if (tab.url == 'chrome://newtab/')
                                        continue;
                        }