Regenerate the QR code with the given URL.
(url: string)
| 138 | |
| 139 | /** Regenerate the QR code with the given URL. */ |
| 140 | function regenerateQr(url: string): void { |
| 141 | generateQr(url) |
| 142 | .then(lines => { |
| 143 | qrLines = lines |
| 144 | renderStatusLine() |
| 145 | }) |
| 146 | .catch(e => { |
| 147 | logForDebugging(`QR code generation failed: ${e}`, { level: 'error' }) |
| 148 | }) |
| 149 | } |
| 150 | |
| 151 | /** Render the connecting spinner line (shown before first updateIdleStatus). */ |
| 152 | function renderConnectingLine(): void { |
no test coverage detected