mirror of
https://github.com/ipfs/ipfs-blog.git
synced 2026-08-10 19:02:48 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user