mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
cleanup webpack
This commit is contained in:
parent
6d29acb7eb
commit
ecbe543b15
10 changed files with 44 additions and 68 deletions
|
|
@ -1,6 +1,5 @@
|
|||
import window from 'window';
|
||||
import ko from 'ko';
|
||||
import qr from 'qr';
|
||||
|
||||
import { Capa, StorageResultType } from 'Common/Enums';
|
||||
import { pString } from 'Common/Utils';
|
||||
|
|
@ -167,7 +166,7 @@ class TwoFactorConfigurationPopupView extends AbstractViewNext {
|
|||
this.viewBackupCodes(pString(oData.Result.BackupCodes).replace(/[\s]+/g, ' '));
|
||||
|
||||
this.viewUrlTitle(pString(oData.Result.UrlTitle));
|
||||
this.viewUrl(qr.toDataURL({ level: 'M', size: 8, value: this.getQr() }));
|
||||
this.viewUrl(window.qr.toDataURL({ level: 'M', size: 8, value: this.getQr() }));
|
||||
} else {
|
||||
this.viewUser('');
|
||||
this.viewEnable_(false);
|
||||
|
|
@ -187,7 +186,7 @@ class TwoFactorConfigurationPopupView extends AbstractViewNext {
|
|||
if (StorageResultType.Success === result && data && data.Result) {
|
||||
this.viewSecret(pString(data.Result.Secret));
|
||||
this.viewUrlTitle(pString(data.Result.UrlTitle));
|
||||
this.viewUrl(qr.toDataURL({ level: 'M', size: 6, value: this.getQr() }));
|
||||
this.viewUrl(window.qr.toDataURL({ level: 'M', size: 6, value: this.getQr() }));
|
||||
} else {
|
||||
this.viewSecret('');
|
||||
this.viewUrlTitle('');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue