Remove debugs
This commit is contained in:
parent
0c04c04590
commit
c4dfc7b11d
|
@ -11,12 +11,6 @@
|
||||||
import Kvp from './kvp';
|
import Kvp from './kvp';
|
||||||
|
|
||||||
export default class SecureKvpSetting extends Kvp {
|
export default class SecureKvpSetting extends Kvp {
|
||||||
|
|
||||||
constructor(args, ...merge) {
|
|
||||||
super(args, ...merge);
|
|
||||||
window.skvp = this;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The value to use when the setting doesn't have a value.
|
* The value to use when the setting doesn't have a value.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -40,9 +40,8 @@
|
||||||
},
|
},
|
||||||
valueBlur(e) {
|
valueBlur(e) {
|
||||||
if (!this.valueChanged) return;
|
if (!this.valueChanged) return;
|
||||||
const encrypted = aes256.encrypt(this.masterKey, e.target.value);
|
const value = aes256.encrypt(this.masterKey, e.target.value);
|
||||||
if (encrypted === this.setting.value.value) return;
|
this.setting.value = { key: this.setting.value.key, value }
|
||||||
this.setting.value = { key: this.setting.value.key, value: encrypted }
|
|
||||||
this.valueChanged = false;
|
this.valueChanged = false;
|
||||||
},
|
},
|
||||||
keyUpKey(e) {
|
keyUpKey(e) {
|
||||||
|
|
Loading…
Reference in New Issue