]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Remove console statements
authorJuanjo Diaz <juanjo.diaz@intopalo.com>
Tue, 30 Jan 2018 16:53:38 +0000 (08:53 -0800)
committerJuanjo Diaz <juanjo.diaz@intopalo.com>
Tue, 30 Jan 2018 16:53:38 +0000 (08:53 -0800)
app/webutil.js
core/base64.js
core/input/keyboard.js

index dabc97c748357f67482999e63238b86bf25df23f..c10bc54cc22e20ba4a5bcc23dc0a0b6b6de65816 100644 (file)
@@ -115,7 +115,6 @@ export function initSettings (callback /*, ...callbackArgs */) {
     if (window.chrome && window.chrome.storage) {
         window.chrome.storage.sync.get(function (cfg) {
             settings = cfg;
-            console.log(settings);
             if (callback) {
                 callback.apply(this, callbackArgs);
             }
@@ -132,7 +131,6 @@ export function initSettings (callback /*, ...callbackArgs */) {
 export function writeSetting (name, value) {
     "use strict";
     if (window.chrome && window.chrome.storage) {
-        //console.log("writeSetting:", name, value);
         if (settings[name] !== value) {
             settings[name] = value;
             window.chrome.storage.sync.set(settings);
index 9d24a25fdcac1ba6bb0e73ce0558dba1cbd9e7b9..3c48ecaf3cf7c57579518e1732216d7fc767c18c 100644 (file)
@@ -6,6 +6,7 @@
 
 /*jslint white: false */
 /*global console */
+import * as Log from './util/logging.js';
 
 export default {
     /* Convert data (an array of integers) to a Base64 string. */
@@ -82,7 +83,7 @@ export default {
             var padding = (data.charAt(i) === base64Pad);
             // Skip illegal characters and whitespace
             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;
             }
 
index 464d1ce8c49c441bd81b867950450c8cf64448b0..1bf1a38677e13698edd6ba9f17f9879244bd8f08 100644 (file)
@@ -227,7 +227,7 @@ Keyboard.prototype = {
         this._pendingKey = null;
 
         if (!keysym) {
-            console.log('keypress with no keysym:', e);
+            Log.Info('keypress with no keysym:', e);
             return;
         }