Skip to content

Commit

Permalink
fix: move head() to Mixin so both work
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Feb 25, 2021
1 parent 7e0cb6e commit 69eaec3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
7 changes: 7 additions & 0 deletions components/pages/posts/navigation/url/UrlManagerMixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export default {
name: 'description',
content: `Rule 34 of ${tags} on ${this.urlDomain}.`,
},

// TODO: test if it actually works
{
hid: 'referrer',
name: 'referrer',
content: 'no-referrer',
},
],
}
},
Expand Down
12 changes: 0 additions & 12 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,6 @@ export default {
mixins: [UrlManagerMixin],
head() {
return {
meta: [
{
hid: 'referrer',
name: 'referrer',
content: 'no-referrer',
},
],
}
},
computed: {
...mapGetters('booru', ['getPosts']),
},
Expand Down

0 comments on commit 69eaec3

Please sign in to comment.