Skip to content

Commit

Permalink
Update default.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Dec 19, 2022
1 parent fe50da9 commit fdf4871
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,20 @@ export default {
});
}
},
/* watch: {
$route: {
immediate: true,
handler(to) {
// Todo: Check this again
if(!process.client || typeof window === 'undefined') {
return
}
window['gtag']('config', 'UA-93461466-1', {
'page_path': '/primevue' + to.path
});
watch: {
$route: {
immediate: true,
handler(to) {
if (!process.client || typeof window === 'undefined') {
return;
}
this.sidebarActive = false;
DomHandler.removeClass(document.body, 'blocked-scroll');
this.$toast.removeAllGroups();
}
}
}, */
this.sidebarActive = false;
DomHandler.removeClass(document.body, 'blocked-scroll');
this.$toast.removeAllGroups();
}
}
},
methods: {
onMenuButtonClick() {
if (this.sidebarActive) {
Expand Down

0 comments on commit fdf4871

Please sign in to comment.