fix: switch redirects to mounted()

JS compilation machine is too complex, reverting to mounted(), as we
know it always executes only in the browser context.
This commit is contained in:
Marcin Rataj
2022-08-16 01:04:12 +02:00
parent c18782b7aa
commit d356dff517
+1 -4
View File
@@ -9,10 +9,7 @@
<script>
export default {
name: 'Layout',
beforeCreate() {
if (!process.browser) {
return;
}
mounted() {
// redirect blog.ipfs.io → blog.ipfs.tech (incl. gateways)
// https://github.com/ipfs/ipfs-blog/issues/417
const { href } = window.location