Strip the scheme for a compact display origin: `http://127.0.0.1:58627` → `127.0.0.1:58627`.
(origin: string)
| 51 | |
| 52 | /** Strip the scheme for a compact display origin: `http://127.0.0.1:58627` → `127.0.0.1:58627`. */ |
| 53 | function shortOrigin(origin: string): string { |
| 54 | return origin.replace(/^https?:\/\//, '').replace(/\/$/, ''); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Address of the REAL server the client is connected to, shown in the status bar. |
no outgoing calls
no test coverage detected