mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 15:07:57 +01:00
Add tests for dead help links. Fix some minor bugs. Show error when trying to modify a builtin group rather than failing silently.
This commit is contained in:
@@ -6,14 +6,18 @@
|
||||
|
||||
function checkFragment() {
|
||||
document.title = document.getElementsByTagNameNS("http://www.w3.org/1999/xhtml", "title")[0].textContent;
|
||||
var frag = document.location.hash.substr(1);
|
||||
var elem = document.getElementById(frag);
|
||||
|
||||
function action() {
|
||||
content.scrollTo(0, content.scrollY + elem.getBoundingClientRect().top - 10); // 10px context
|
||||
}
|
||||
if (elem) {
|
||||
action();
|
||||
setTimeout(action, 10);
|
||||
|
||||
var frag = document.location.hash.substr(1);
|
||||
if (frag) {
|
||||
var elem = document.getElementById(frag);
|
||||
if (elem) {
|
||||
action();
|
||||
setTimeout(action, 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user