diff --git a/src/js/menu.js b/src/js/menu.js index d4fd8e6e..ffaaeaf4 100644 --- a/src/js/menu.js +++ b/src/js/menu.js @@ -63,7 +63,8 @@ var menu = (function() { var html = helper.e("html"); if (state.get().menu) { helper.addClass(html, "is-menu-open"); - helper.e(".menu").focus(); + render.focus(); + render.scrollToTop(); shade.render({ action: function() { mod.close(); @@ -95,6 +96,10 @@ var menu = (function() { } }; + render.focus = function() { + helper.e(".menu").focus(); + }; + var toggle = function() { mod.toggle(); render.toggle(); diff --git a/src/js/version.js b/src/js/version.js index cd56e387..08be0a73 100644 --- a/src/js/version.js +++ b/src/js/version.js @@ -1,6 +1,6 @@ var version = (function() { - var current = "3.48.0"; + var current = "3.49.0"; var compare = function(a, b) { var pa = a.split("."); diff --git a/src/manifest.json b/src/manifest.json index 8f62be07..a3807a82 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": "3.48.0", + "version": "3.49.0", "manifest_version": 2, "chrome_url_overrides": { "newtab": "index.html"