From c26956812e005322608942e609f0cc44851aa033 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Wed, 15 Jan 2020 08:26:08 +0000 Subject: [PATCH] [bug] fix search not finding some links --- package-lock.json | 2 +- package.json | 2 +- src/js/search.js | 1 - src/js/version.js | 2 +- src/manifest.json | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b1cbd62..5166ea08 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.19.0", + "version": "4.19.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 1f58e9eb..3804a4c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nighttab", - "version": "4.19.0", + "version": "4.19.1", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", "main": "index.js", "scripts": { diff --git a/src/js/search.js b/src/js/search.js index c30b2db1..da0e9e0c 100644 --- a/src/js/search.js +++ b/src/js/search.js @@ -55,7 +55,6 @@ var search = (function() { var matchUrl = (arrayItem.url != null) && (arrayItem.url.replace(/^https?\:\/\//i, "").replace(/\/$/, "").toLowerCase().includes(string)); var matchName = (arrayItem.name != null) && (arrayItem.name.toLowerCase().replace(/\s/g, "").includes(string)); if (matchUrl || matchName) { - currentGroup.items.splice(index, 1); matchingItems.push(JSON.parse(JSON.stringify(arrayItem))); }; }); diff --git a/src/js/version.js b/src/js/version.js index 65a69213..a66f178e 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "4.19.0"; + var current = "4.19.1"; var name = "Naughty Goose"; diff --git a/src/manifest.json b/src/manifest.json index c8b2ab0f..f1ac1c2a 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "name": "nightTab", "short_name": "nightTab", "description": "A neutral new tab page accented with a chosen colour. Customise the layout, style, background and bookmarks in nightTab.", - "version": "4.19.0", + "version": "4.19.1", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"