Skip to content

Commit

Permalink
docs(wallet): don't add protocol to relative paths in wallet-iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed Sep 21, 2023
1 parent c9eae16 commit 86c6f61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/browser/wallet-iframe/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ export default {
}),
methods: {
navigate() {
if (!/^https?:\/\//.test(this.nextAeppUrl)) this.nextAeppUrl = 'http://' + this.nextAeppUrl;
if (!/^https?:\/\//.test(this.nextAeppUrl) && !this.nextAeppUrl.startsWith('.')) {
this.nextAeppUrl = 'http://' + this.nextAeppUrl;
}
this.aeppUrl = '';
this.$nextTick(() => {
this.aeppUrl = this.nextAeppUrl;
Expand Down

0 comments on commit 86c6f61

Please sign in to comment.