From 6d18309b08364cbff45d92cba903e35cf9d75435 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Thu, 30 Jul 2020 15:09:15 +0100 Subject: [PATCH] [bug] fix search focus if search is not shown --- package-lock.json | 2 +- package.json | 2 +- src/js/search.js | 2 +- src/js/version.js | 2 +- src/manifest.json | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index fccb9ee4..b7fc3f31 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.75.0", + "version": "5.75.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index fc3117f8..db849040 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nightTab", - "version": "5.75.0", + "version": "5.75.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 2587272e..c7d3ea15 100644 --- a/src/js/search.js +++ b/src/js/search.js @@ -126,7 +126,7 @@ var search = (function() { }; render.focus = function() { - if (state.get.current().header.search.focus) { + if (state.get.current().header.search.show && state.get.current().header.search.focus) { window.addEventListener("load", function(event) { helper.e(".search-input").focus(); }); diff --git a/src/js/version.js b/src/js/version.js index 3eeffadb..ad4a86d5 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "5.75.0"; + var current = "5.75.1"; var name = "Jaded Raven"; diff --git a/src/manifest.json b/src/manifest.json index bbd002d9..6ee114c8 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": "5.75.0", + "version": "5.75.1", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"