diff --git a/src/pages/contributors.vue b/src/pages/contributors.vue index 0625ff11..abbb1a5b 100644 --- a/src/pages/contributors.vue +++ b/src/pages/contributors.vue @@ -3,9 +3,9 @@ name: "Contributors", auth: false, async fetch() { - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.start(); - } + } */ try { const contributors = await this.$graphql( `{ @@ -33,9 +33,9 @@ } catch (err) { this.contributors = null; } - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.finish(); - } + } */ }, data() { return { diff --git a/src/pages/partners.vue b/src/pages/partners.vue index ff67b21a..2ba5e9a0 100644 --- a/src/pages/partners.vue +++ b/src/pages/partners.vue @@ -184,9 +184,9 @@ }; }, async fetch() { - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.start(); - } + } */ try { let { partners, sponsors } = await this.$graphql( `{ @@ -209,9 +209,9 @@ } catch (err) { return this.error(err.message); } - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.finish(); - } + } */ }, mounted() { this.$auth.$storage.setUniversal("redirect", "/partners#req"); diff --git a/src/pages/store/index.vue b/src/pages/store/index.vue index 9838465e..8bd4c7bf 100644 --- a/src/pages/store/index.vue +++ b/src/pages/store/index.vue @@ -264,8 +264,8 @@ title: "Store" }, async fetch() { - if(process.browser) - this.$nuxt.$loading.start(); +/* if(process.browser) + this.$nuxt.$loading.start(); */ const { presences, partners, science } = await this.$graphql( ` @@ -308,8 +308,8 @@ if ((p.users / usage) * 100 > 5) return p; }); - if(process.browser) - this.$nuxt.$loading.finish(); + /* if(process.browser) + this.$nuxt.$loading.finish(); */ if ( this.pageCount < Number(this.$route.query.page) || this.$route.query.page <= -1 diff --git a/src/pages/store/presences/_presenceName.vue b/src/pages/store/presences/_presenceName.vue index 8e901e20..940feb26 100644 --- a/src/pages/store/presences/_presenceName.vue +++ b/src/pages/store/presences/_presenceName.vue @@ -318,9 +318,9 @@ }, async fetch() { - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.start(); - } + } */ let { presences, partners, usage } = await this.$graphql( ` { @@ -381,9 +381,9 @@ } catch (err) {} this.isMobile = false; - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.finish(); - } + } */ if (!this.presence) this.$nuxt.error({ statusCode: 404, diff --git a/src/pages/users/_userId.vue b/src/pages/users/_userId.vue index 5a58a49c..d396a5f6 100644 --- a/src/pages/users/_userId.vue +++ b/src/pages/users/_userId.vue @@ -171,9 +171,9 @@ }; }, async fetch() { - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.start(); - } + } */ let res = await this.$graphql( `{ credits(id: "${this.$route.params.userId}") { @@ -250,9 +250,9 @@ this.showContributions = false; this.userPresences = userPresences; this.userContributions = userContributions; - if (process.browser) { + /* if (process.browser) { window.$nuxt.$loading.finish(); - } + } */ }, methods: { linkify(pls) {