Skip to content

Commit

Permalink
invites: Fix link to wallet at Android
Browse files Browse the repository at this point in the history
Currently, it generate links like file:///android_asset/www/index.html#/invite/9oyursU4tq3BuWQTGBYX92steX8en31Y8WjC7PWBE7yHnAEtKKGtEA8hnq5hJUhcQW5Y7aafQ57EDQE24czgmFe2zU7fG
  • Loading branch information
davidyuk committed Aug 6, 2020
1 parent bfc9fdd commit 9cbf3e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/popup/router/components/InviteItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ export default {
link() {
const secretKey = Crypto.encodeBase58Check(Buffer.from(this.secretKey, 'hex'));
return new URL(
this.$router.resolve({ name: 'invite-claim', params: { secretKey } }).href,
window.location,
this.$router
.resolve({ name: 'invite-claim', params: { secretKey } })
.href.replace(/^#/, ''),
'https://wallet.superhero.com',
);
},
address() {
Expand Down

1 comment on commit 9cbf3e9

@davidyuk
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.