From d3bac307bbd888766da8ead9a47cffe789500c82 Mon Sep 17 00:00:00 2001 From: Jai A Date: Sun, 25 Oct 2020 13:48:13 -0700 Subject: [PATCH] Test ads, fix search reload on non-relevance sort types --- nuxt.config.js | 5 +++++ pages/mods.vue | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index 611554ce..841bed4f 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -69,6 +69,11 @@ export default { async: true, defer: true, }, + { + src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', + 'data-ad-client': 'ca-pub-4615302805870170', + async: true, + }, ], }, diff --git a/pages/mods.vue b/pages/mods.vue index bed6ea57..e7266a7e 100644 --- a/pages/mods.vue +++ b/pages/mods.vue @@ -308,7 +308,9 @@ export default { if (this.$route.query.v) this.selectedVersions = this.$route.query.v.split(',') if (this.$route.query.s) { - this.sortType = this.$route.query.s + this.sortType.name = this.$route.query.s + this.sortType.display = + this.sortType.name.charAt(0).toUpperCase() + this.sortType.name.slice(1) } if (this.$route.query.m) { this.maxResults = this.$route.query.m