(addr: string)
| 108 | } |
| 109 | |
| 110 | export function deleteHttpHeader(addr: string) { |
| 111 | if (addr.toLocaleLowerCase().indexOf("http://") === 0) { |
| 112 | return `${addr.slice(7)}`; |
| 113 | } else if (addr.toLocaleLowerCase().indexOf("https://") === 0) { |
| 114 | return `${addr.slice(8)}`; |
| 115 | } |
| 116 | return addr; |
| 117 | } |
| 118 | |
| 119 | // The ws address on the Daemon side is converted to the local ws address |
| 120 | export function daemonWsAddressToWs(wsAddr = "") { |
no outgoing calls
no test coverage detected