Skip to content

Commit 3890c7c

Browse files
committed
Site updated: 2017-01-19 13:54:47
1 parent e1600e1 commit 3890c7c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

images/stdlib.png

-3.79 KB
Loading

images/tmvuejs2.png

-21.1 KB
Loading

js/common.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@
4444
}
4545

4646
function initLocationHashFuzzyMatching () {
47-
var hash;
47+
var rawHash = window.location.hash
48+
if (!rawHash) return
49+
var hash
4850
try {
49-
hash = escapeCharacters(decodeURIComponent(window.location.hash))
51+
hash = escapeCharacters(decodeURIComponent(rawHash))
5052
} catch(e) {
51-
hash = escapeCharacters(window.location.hash)
53+
hash = escapeCharacters(rawHash)
5254
}
53-
if (!hash) return
5455
var hashTarget = document.getElementById(hash)
5556
if (!hashTarget) {
5657
var normalizedHash = normalizeHash(hash)

0 commit comments

Comments
 (0)