mirror of
https://github.com/meshtastic/web.git
synced 2026-02-18 22:58:38 -05:00
Fix QR code not being URL safe
This commit is contained in:
@@ -44,11 +44,14 @@ export const QRDialog = ({
|
||||
settings: channelsToEncode,
|
||||
})
|
||||
);
|
||||
const base64 = fromByteArray(encoded);
|
||||
const base64 = fromByteArray(encoded)
|
||||
.replace(/=/g, "")
|
||||
.replace(/\+/g, "-")
|
||||
.replace(/\//g, "_");
|
||||
|
||||
setQRCodeURL(`https://www.meshtastic.org/e/#${base64}`);
|
||||
}, [channels, selectedChannels, loraConfig]);
|
||||
|
||||
|
||||
return (
|
||||
<Dialog
|
||||
isShown={isOpen}
|
||||
|
||||
Reference in New Issue
Block a user