Skip to content

Commit d9a7017

Browse files
author
An Phan
committed
Move hash handler to mounted()
1 parent 2e4fb25 commit d9a7017

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

app/site/src/App.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,20 @@ export default {
6464
6565
this.debounceFilter()
6666
})
67-
68-
// Also, upon page load, tf there's a hash, we filter the awesome list
69-
// right away.
70-
if (window.location.hash) {
71-
this.q = /^#(.*)/.exec(window.location.hash)[1].toLowerCase()
72-
this.debounceFilter()
73-
}
7467
},
7568
7669
mounted() {
7770
// Register lazyloading for the GitHub badges
7871
const blazy = new Blazy({
7972
container: '.right'
8073
})
74+
75+
// Also, upon page load, tf there's a hash, we filter the awesome list
76+
// right away.
77+
if (window.location.hash) {
78+
this.q = /^#(.*)/.exec(window.location.hash)[1].toLowerCase()
79+
this.debounceFilter()
80+
}
8181
},
8282
8383
methods: {

0 commit comments

Comments
 (0)