diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-02-04 00:02:39 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2019-02-04 00:12:55 -1000 |
commit | be9a1da05281cc6c1c3569d2822ba8ff6e611c7b (patch) | |
tree | d84ce14818e799383c29186ad5ff0f975ed68dd2 /lib/serve.js | |
parent | 54f2f24d48151bdcd501bcc58bb8934e9cef08a4 (diff) | |
download | patchfoo-be9a1da05281cc6c1c3569d2822ba8ff6e611c7b.tar.gz patchfoo-be9a1da05281cc6c1c3569d2822ba8ff6e611c7b.zip |
Show addresses more compactly
Handle missing port
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js index d92117e..a3082c6 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -4208,7 +4208,6 @@ Serve.prototype.pub = function (path) { var id = String(path).substr(1) try { id = decodeURIComponent(id) } catch(e) {} - var portRegexp = new RegExp(':' + self.app.ssbPort + '$') pull( ph('section', [ ph('h3', ['Pub addresses: ', self.phIdLink(id)]), @@ -4216,7 +4215,7 @@ Serve.prototype.pub = function (path) { self.app.getAddresses(id), pull.map(function (address) { return ph('div', [ - ph('code', address.replace(portRegexp, '')) + ph('code', self.app.removeDefaultPort(address)) ]) }) ) |