Merge pull request #1011 from juanjoDiaz/remove_console_statements
Remove console statements
This commit is contained in:
commit
be8580558c
@ -115,7 +115,6 @@ export function initSettings (callback /*, ...callbackArgs */) {
|
|||||||
if (window.chrome && window.chrome.storage) {
|
if (window.chrome && window.chrome.storage) {
|
||||||
window.chrome.storage.sync.get(function (cfg) {
|
window.chrome.storage.sync.get(function (cfg) {
|
||||||
settings = cfg;
|
settings = cfg;
|
||||||
console.log(settings);
|
|
||||||
if (callback) {
|
if (callback) {
|
||||||
callback.apply(this, callbackArgs);
|
callback.apply(this, callbackArgs);
|
||||||
}
|
}
|
||||||
@ -132,7 +131,6 @@ export function initSettings (callback /*, ...callbackArgs */) {
|
|||||||
export function writeSetting (name, value) {
|
export function writeSetting (name, value) {
|
||||||
"use strict";
|
"use strict";
|
||||||
if (window.chrome && window.chrome.storage) {
|
if (window.chrome && window.chrome.storage) {
|
||||||
//console.log("writeSetting:", name, value);
|
|
||||||
if (settings[name] !== value) {
|
if (settings[name] !== value) {
|
||||||
settings[name] = value;
|
settings[name] = value;
|
||||||
window.chrome.storage.sync.set(settings);
|
window.chrome.storage.sync.set(settings);
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
|
|
||||||
/*jslint white: false */
|
/*jslint white: false */
|
||||||
/*global console */
|
/*global console */
|
||||||
|
import * as Log from './util/logging.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
/* Convert data (an array of integers) to a Base64 string. */
|
/* Convert data (an array of integers) to a Base64 string. */
|
||||||
@ -82,7 +83,7 @@ export default {
|
|||||||
var padding = (data.charAt(i) === base64Pad);
|
var padding = (data.charAt(i) === base64Pad);
|
||||||
// Skip illegal characters and whitespace
|
// Skip illegal characters and whitespace
|
||||||
if (c === -1) {
|
if (c === -1) {
|
||||||
console.error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
|
Log.Error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -227,7 +227,7 @@ Keyboard.prototype = {
|
|||||||
this._pendingKey = null;
|
this._pendingKey = null;
|
||||||
|
|
||||||
if (!keysym) {
|
if (!keysym) {
|
||||||
console.log('keypress with no keysym:', e);
|
Log.Info('keypress with no keysym:', e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user