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 @@