mirror of
https://github.com/zombieFox/nightTab.git
synced 2024-12-27 17:19:05 +01:00
[refactor] improve menu scroll
This commit is contained in:
parent
cec0947fa7
commit
648e4f9978
@ -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();
|
||||
|
@ -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(".");
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user