Added 8-type support
This commit is contained in:
@@ -65,6 +65,10 @@ Hi01379 = (function(psGopherRequest) {
|
||||
if(desc = desc.trim()) { // ignore empty descriptions
|
||||
if(type == '3') // error message
|
||||
output += '<span class=error>' + desc + '</span>' + lbr
|
||||
else if(type == '8') { // output the telnet:// link as is
|
||||
var tlink = 'telnet://' + (sel ? (sel+'@') : '') + host + (port ? (':'+port) : '')
|
||||
output += desc + ': ' + esc(tlink) + lbr
|
||||
}
|
||||
else { // shape the link (internal hi:type|sel|host|port format unless it's an external URL)
|
||||
var deflink = 'hi:'+[type,sel,host,port].join('|'), link = deflink
|
||||
if(type == 'h' && sel.startsWith('URL:')) {
|
||||
|
||||
Reference in New Issue
Block a user