We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1600e1 commit 3890c7cCopy full SHA for 3890c7c
images/stdlib.png
-3.79 KB
images/tmvuejs2.png
-21.1 KB
js/common.js
@@ -44,13 +44,14 @@
44
}
45
46
function initLocationHashFuzzyMatching () {
47
- var hash;
+ var rawHash = window.location.hash
48
+ if (!rawHash) return
49
+ var hash
50
try {
- hash = escapeCharacters(decodeURIComponent(window.location.hash))
51
+ hash = escapeCharacters(decodeURIComponent(rawHash))
52
} catch(e) {
- hash = escapeCharacters(window.location.hash)
53
+ hash = escapeCharacters(rawHash)
54
- if (!hash) return
55
var hashTarget = document.getElementById(hash)
56
if (!hashTarget) {
57
var normalizedHash = normalizeHash(hash)
0 commit comments