Skip to content

Commit

Permalink
Fixed build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
shivendra-webkul committed Mar 13, 2024
1 parent 4e390b4 commit f09077c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/.vuepress/theme/layouts/404.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,17 @@ import configurations from '../../config';
export default {
data() {
return {
currentURL: window.location.href,
currentURL: '',
availableURLs: [],
}
},
mounted() {
this.findSimilarPaths(`/${this.currentURL.split('/')[3]}/`, this.currentURL.split('/')[4]);
if (typeof window !== 'undefined') {
this.currentURL = window.location.href;
this.findSimilarPaths(`/${this.currentURL.split('/')[3]}/`, this.currentURL.split('/')[4]);
}
},
methods: {
Expand Down

0 comments on commit f09077c

Please sign in to comment.