Skip to content

Commit 86c6f61

Browse files
committed
docs(wallet): don't add protocol to relative paths in wallet-iframe
1 parent c9eae16 commit 86c6f61

File tree

1 file changed

+3
-1
lines changed
  • examples/browser/wallet-iframe/src

1 file changed

+3
-1
lines changed

examples/browser/wallet-iframe/src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ export default {
8484
}),
8585
methods: {
8686
navigate() {
87-
if (!/^https?:\/\//.test(this.nextAeppUrl)) this.nextAeppUrl = 'http://' + this.nextAeppUrl;
87+
if (!/^https?:\/\//.test(this.nextAeppUrl) && !this.nextAeppUrl.startsWith('.')) {
88+
this.nextAeppUrl = 'http://' + this.nextAeppUrl;
89+
}
8890
this.aeppUrl = '';
8991
this.$nextTick(() => {
9092
this.aeppUrl = this.nextAeppUrl;

0 commit comments

Comments
 (0)