From 0512258c8e77f4ee63a7f7d100e8bb7c898fc343 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 26 Jul 2020 18:49:38 -0400 Subject: Display scroll refactor (#694) * Cache navigation header * Create _focusEntry * Update scroll restoration * Require explicit entry focus index --- ext/bg/js/search.js | 1 + 1 file changed, 1 insertion(+) (limited to 'ext/bg') diff --git a/ext/bg/js/search.js b/ext/bg/js/search.js index c5051fa9..49a93e47 100644 --- a/ext/bg/js/search.js +++ b/ext/bg/js/search.js @@ -250,6 +250,7 @@ class DisplaySearch extends Display { query }, state: { + focusEntry: 0, sentence: {text: query, offset: 0}, url: window.location.href }, -- cgit v1.2.3