Fix broken selectors for numeric anchors

This commit is contained in:
squidfunk
2017-01-03 22:12:49 +01:00
parent b22e571f31
commit 9617716652
3 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ export default class Blur {
/* Index anchor node offsets for fast lookup */
this.anchors_ = [].map.call(this.els_, el => {
return document.querySelector(el.hash)
return document.getElementById(el.hash.substring(1))
})
}