mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Render QR code with SVG, not canvas
This commit is contained in:
@@ -25,8 +25,6 @@ type PropsType = {
|
||||
provisioningUrl: Loadable<string>;
|
||||
};
|
||||
|
||||
// This should match the size in the CSS.
|
||||
const QR_CODE_SIZE = 256;
|
||||
const QR_CODE_FAILED_LINK =
|
||||
'https://support.signal.org/hc/articles/360007320451#desktop_multiple_device';
|
||||
|
||||
@@ -113,10 +111,9 @@ function InstallScreenQrCode(
|
||||
case LoadingState.Loaded:
|
||||
contents = (
|
||||
<QrCode
|
||||
aria-label={i18n('Install__scan-this-code')}
|
||||
alt={i18n('Install__scan-this-code')}
|
||||
className={getQrCodeClassName('__code')}
|
||||
data={props.value}
|
||||
size={QR_CODE_SIZE}
|
||||
/>
|
||||
);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user