Commit 428913d
committed
Fix: fall back to desktop pairing URL for HTTP endpoints
hostedPairingUrl (via buildHostedPairingUrl) always returned a string
when endpointUrl was truthy, making the ?? fallback to
resolveDesktopPairingUrl unreachable dead code. This caused all
shareable pairing links to point to the hosted HTTPS app even for
HTTP LAN backends, where browsers block mixed content.
Add isHostedPairingCompatible check so resolveHostedPairingUrl returns
null for non-HTTPS endpoints, allowing the nullish coalescing to
correctly fall through to the direct desktop pairing URL.1 parent 34102d3 commit 428913d
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
254 | 265 | | |
255 | 266 | | |
256 | 267 | | |
| |||
0 commit comments