Skip to content

Commit

Permalink
Merge pull request #376 from shivendra-webkul/build-issue
Browse files Browse the repository at this point in the history
Fixed build issue
  • Loading branch information
devansh-webkul authored Mar 13, 2024
2 parents 4e390b4 + f09077c commit 64deb96
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 64deb96

Please sign in to comment.