[bug] fix search focus if search is not shown

This commit is contained in:
zombieFox 2020-07-30 15:09:15 +01:00
parent 775f1bf5c0
commit 6d18309b08
5 changed files with 5 additions and 5 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "nightTab",
"version": "5.75.0",
"version": "5.75.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -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": {

View File

@ -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();
});

View File

@ -1,6 +1,6 @@
var version = (function() {
var current = "5.75.0";
var current = "5.75.1";
var name = "Jaded Raven";

View File

@ -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"