From c9541fd5325113f842432699e2da70176d888df4 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 23 May 2024 22:15:03 +1200 Subject: [PATCH] add button to call selected peer --- public/call.html | 9 +++++++++ public/index.html | 15 ++++++++++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/public/call.html b/public/call.html index 126b641..4f8f012 100644 --- a/public/call.html +++ b/public/call.html @@ -321,6 +321,15 @@ this.updateCallsList(); }, 3000); + // parse url params + var queryParams = new URLSearchParams(location.search); + var queryDestinationHash = queryParams.get('destination_hash'); + + // autofill destination hash to call when query param provided in url + if(queryDestinationHash){ + this.destinationHash = queryDestinationHash; + } + }, methods: { async initiateCall(destinationHash) { diff --git a/public/index.html b/public/index.html index a13a3f1..ab0d892 100644 --- a/public/index.html +++ b/public/index.html @@ -252,8 +252,21 @@
<{{ selectedPeer.destination_hash }}> {{ selectedPeerPath.hops }} {{ selectedPeerPath.hops === 1 ? 'hop' : 'hops' }} away
- +
+ +
+
+ + + +
+
+
+
+ + +