We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 537b891 commit 70f0488Copy full SHA for 70f0488
src/dereference.js
@@ -2,8 +2,8 @@ import { selectorToRange } from 'dom-anchor-selector'
2
import { uriToSpecificResource } from 'selector-state-frags'
3
import scrollIntoView from 'scroll-into-view'
4
5
-window.onload = processWindowLocation
6
-window.onhashchange = processWindowLocation
+window.addEventListener('load', processWindowLocation)
+window.addEventListener('hashchange', processWindowLocation)
7
8
function processWindowLocation() {
9
const uri = window.location.href
0 commit comments