debug log

This commit is contained in:
antelle 2016-04-09 12:28:14 +03:00
parent 8cfabab0bc
commit 382c7fc6dc
1 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,8 @@ var Logger = require('../../util/logger');
var logger = new Logger('auto-type');
var clearTextAutoTypeLog = localStorage.clearTextAutoTypeLog;
var AutoType = {
run: function(entry, sequence, obfuscate, callback) {
logger.debug('Start', sequence);
@ -49,7 +51,11 @@ var AutoType = {
return mod + this.printOps(op.value);
}
if (op.type === 'text') {
return mod + op.value.replace(/./g, '*');
var value = op.value;
if (!clearTextAutoTypeLog) {
value = value.replace(/./g, '*');
}
return mod + value;
}
return mod + op.type + ':' + op.value;
}