|
@@ -27,7 +27,9 @@ async function UIWindowQR(options){
|
|
|
// close button containing the multiplication sign
|
|
|
h += `<div class="qr-code-window-close-btn generic-close-window-button"> × </div>`;
|
|
|
h += `<div class="otp-qr-code">`;
|
|
|
- h += `<h1 style="text-align: center; font-size: 16px; padding: 10px; font-weight: 400; margin: -10px 10px 20px 10px; -webkit-font-smoothing: antialiased; color: #5f626d;">${i18n('scan_qr_c2a')}</h1>`;
|
|
|
+ h += `<h1 style="text-align: center; font-size: 16px; padding: 10px; font-weight: 400; margin: -10px 10px 20px 10px; -webkit-font-smoothing: antialiased; color: #5f626d;">${
|
|
|
+ i18n(options.message_i18n_key || 'scan_qr_generic')
|
|
|
+ }</h1>`;
|
|
|
h += `</div>`;
|
|
|
|
|
|
const el_window = await UIWindow({
|
|
@@ -47,7 +49,7 @@ async function UIWindowQR(options){
|
|
|
allow_native_ctxmenu: false,
|
|
|
allow_user_select: false,
|
|
|
backdrop: true,
|
|
|
- width: 350,
|
|
|
+ width: 550,
|
|
|
height: 'auto',
|
|
|
dominant: true,
|
|
|
show_in_taskbar: false,
|
|
@@ -65,9 +67,9 @@ async function UIWindowQR(options){
|
|
|
|
|
|
// generate auth token QR code
|
|
|
new QRCode($(el_window).find('.otp-qr-code').get(0), {
|
|
|
- text: window.gui_origin + '?auth_token=' + window.auth_token,
|
|
|
- width: 155,
|
|
|
- height: 155,
|
|
|
+ text: options.text,
|
|
|
+ width: 455,
|
|
|
+ height: 455,
|
|
|
colorDark : "#000000",
|
|
|
colorLight : "#ffffff",
|
|
|
correctLevel : QRCode.CorrectLevel.H
|