|
|
@ -44,7 +44,10 @@ export const QRDialog = ({ |
|
|
settings: channelsToEncode, |
|
|
settings: channelsToEncode, |
|
|
}) |
|
|
}) |
|
|
); |
|
|
); |
|
|
const base64 = fromByteArray(encoded); |
|
|
const base64 = fromByteArray(encoded) |
|
|
|
|
|
.replace(/=/g, "") |
|
|
|
|
|
.replace(/\+/g, "-") |
|
|
|
|
|
.replace(/\//g, "_"); |
|
|
|
|
|
|
|
|
setQRCodeURL(`https://www.meshtastic.org/e/#${base64}`); |
|
|
setQRCodeURL(`https://www.meshtastic.org/e/#${base64}`); |
|
|
}, [channels, selectedChannels, loraConfig]); |
|
|
}, [channels, selectedChannels, loraConfig]); |
|
|
|