Skip to content

Commit

Permalink
[bug] fix search focus if search is not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Jul 30, 2020
1 parent 775f1bf commit 6d18309
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
2 changes: 1 addition & 1 deletion src/js/version.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var version = (function() {

var current = "5.75.0";
var current = "5.75.1";

var name = "Jaded Raven";

Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6d18309

Please sign in to comment.