mirror of https://github.com/keeweb/keeweb.git
chore: clean up comments
This commit is contained in:
parent
5fa2c75a6f
commit
8f6b7bae36
|
@ -1,5 +1,3 @@
|
|||
/* eslint-env node */
|
||||
|
||||
const fs = require('fs-extra');
|
||||
const path = require('path');
|
||||
const { execSync } = require('child_process');
|
||||
|
|
|
@ -144,15 +144,10 @@ class StorageBase {
|
|||
}
|
||||
|
||||
_httpRequestLauncher(config, onLoad) {
|
||||
console.log('-----------_httpRequestLauncher-----------');
|
||||
console.log(config);
|
||||
console.log(onLoad);
|
||||
console.log('-----------===================-----------');
|
||||
Launcher.remoteApp().httpRequestQuery(
|
||||
config,
|
||||
(level, ...args) => this.logger[level](...args),
|
||||
({ status, response, headers }) => {
|
||||
console.log('aaa');
|
||||
response = Buffer.from(response, 'hex');
|
||||
if (config.responseType === 'json') {
|
||||
try {
|
||||
|
@ -160,7 +155,6 @@ class StorageBase {
|
|||
} catch (e) {
|
||||
return config.error && config.error('json parse error');
|
||||
}
|
||||
console.log('bbb');
|
||||
} else {
|
||||
response = response.buffer.slice(
|
||||
response.byteOffset,
|
||||
|
@ -482,8 +476,8 @@ class StorageBase {
|
|||
this.logger.error('Error exchanging refresh token, trying to authorize again');
|
||||
this._oauthAuthorize(callback);
|
||||
} else {
|
||||
this.logger.error('Error exchanging refresh aaaaaaaaa', err);
|
||||
callback?.('Error exchanging refresh aaaaaaaaaaa');
|
||||
this.logger.error('Error exchanging refresh token', err);
|
||||
callback?.('Error exchanging refresh token');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
@ -99,10 +99,8 @@ class GeneratorView extends View {
|
|||
showPassword() {
|
||||
if (this.hide && !this.model.copy) {
|
||||
this.resultEl.text(PasswordPresenter.present(this.password.length));
|
||||
// this.resultEl.prop('value', PasswordPresenter.present(this.password.length));
|
||||
} else {
|
||||
this.resultEl.text(this.password);
|
||||
// this.resultEl.prop('value', this.password);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue