mirror of https://github.com/keeweb/keeweb.git
copying otp from yubikeys
This commit is contained in:
parent
20e201795e
commit
cf8aa6f9a4
|
@ -486,7 +486,15 @@ class DetailsView extends View {
|
|||
}
|
||||
|
||||
copyOtp() {
|
||||
this.copyKeyPress(this.getFieldView('$otp'));
|
||||
const otpFieldView = this.getFieldView('$otp');
|
||||
if (this.model.external) {
|
||||
if (!otpFieldView) {
|
||||
return false;
|
||||
}
|
||||
otpFieldView.copyValue();
|
||||
return true;
|
||||
}
|
||||
this.copyKeyPress(otpFieldView);
|
||||
}
|
||||
|
||||
showCopyTip() {
|
||||
|
|
Loading…
Reference in New Issue