Test ads, fix search reload on non-relevance sort types

This commit is contained in:
Jai A
2020-10-25 13:48:13 -07:00
parent 7e488b0fa3
commit d3bac307bb
2 changed files with 8 additions and 1 deletions

View File

@@ -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,
},
],
},

View File

@@ -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