Skip to content

Commit b5c1f41

Browse files
committed
frontend(theme):remove unnessesary code
1 parent 2c9c4d5 commit b5c1f41

File tree

4 files changed

+8
-381
lines changed

4 files changed

+8
-381
lines changed

public/theme-colors-reference.html

Lines changed: 0 additions & 373 deletions
This file was deleted.

src/bundles/peer-locations.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ const toLocationString = loc => {
161161
}
162162

163163
const parseConnection = (multiaddr) => {
164-
const protocols = multiaddr.getComponents()
165-
.map(c => c.name.startsWith('quic-v') ? 'quic' : c.name) // shorten quic-v1, quic-v2, etc to just 'quic'
164+
const protocols = multiaddr.protoNames()
165+
.map(p => p.startsWith('quic-v') ? 'quic' : p) // shorten quic-v1, quic-v2, etc to just 'quic'
166166
.join('/')
167167
return protocols
168168
}

0 commit comments

Comments
 (0)