Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
fix: Powered-by component is not SSR compatible #367
Browse files Browse the repository at this point in the history
Add a null check to the `location` reference in `algoliaUrl`.

fixes #367
  • Loading branch information
A Jordan Simonds committed Dec 4, 2017
1 parent 4caa478 commit f372bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PoweredBy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default {
'https://www.algolia.com/?' +
'utm_source=vue-instantsearch&' +
'utm_medium=website&' +
`utm_content=${location.hostname}&` +
( location ? `utm_content=${location.hostname}&` : '' ) +
'utm_campaign=poweredby'
);
},
Expand Down

0 comments on commit f372bd4

Please sign in to comment.