Skip to content

Commit

Permalink
add ws support
Browse files Browse the repository at this point in the history
  • Loading branch information
dskvr committed Jan 11, 2023
1 parent cceaf07 commit 0237b87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/components/relays/pages/RelaysSingle.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<template>

<RelaysNav/>

<MapSingle
Expand Down
3 changes: 2 additions & 1 deletion src/shared/computed.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default {
},
path: function() { return useRoute().path },
relayFromUrl() {
return `wss://${this.$route.params.relayUrl}`
const protocol = this.$route.params.protocol ? this.$route.params.protocol : 'wss'
return `${protocol}://${this.$route.params.relayUrl}`
},
isSingle(){
return typeof this.$route.params.relayUrl !== 'undefined'
Expand Down

0 comments on commit 0237b87

Please sign in to comment.