Add alt text for link screen QR code

This commit is contained in:
Evan Hahn 2021-09-28 12:17:12 -05:00 committed by GitHub
parent e32503eed4
commit e11f11782c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 1 deletions

View file

@ -169,6 +169,7 @@ Whisper.InstallView = Whisper.View.extend({
this.qr = new window.QRCode(this.$('#qr')[0]).makeCode(url);
this.$('#qr').removeAttr('title');
this.$('#qr').addClass('ready');
this.$('#qr img').attr('alt', window.i18n('LinkScreen__scan-this-code'));
},
setDeviceNameDefault() {
const deviceName = window.textsecure.storage.user.getDeviceName();