mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 04:07:59 +01:00
Fix :runtime completion.
This commit is contained in:
@@ -9,7 +9,7 @@ function checkFragment() {
|
||||
var frag = document.location.hash.substr(1);
|
||||
var elem = document.getElementById(frag);
|
||||
function action() {
|
||||
window.content.scrollTo(0, window.content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context
|
||||
content.scrollTo(0, content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context
|
||||
}
|
||||
if (elem) {
|
||||
action();
|
||||
|
||||
Reference in New Issue
Block a user