From: Mike Frysinger Date: Tue, 21 Apr 2020 04:25:13 +0000 (-0400) Subject: ignore all chrome://newtab/ X-Git-Tag: v0.3~9 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=3b8161c3a8df7016c0a90f9ab9ee0fa5dee60804;p=chrome-ext%2Ftabs-backup.git ignore all chrome://newtab/ If we search for 'New Tab', it breaks when using non-English languages. --- diff --git a/background.js b/background.js index 0f8a06c..94884ec 100644 --- a/background.js +++ b/background.js @@ -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; }