From 7a6ed6da5765486f159408d1f9c2f6249d794f67 Mon Sep 17 00:00:00 2001 From: "R. Aidan Campbell" Date: Sat, 7 Oct 2017 14:14:37 -0700 Subject: [PATCH] minor bugfixes in logging --- static/js/common.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/common.js b/static/js/common.js index 16c4f64..6b5a5c0 100644 --- a/static/js/common.js +++ b/static/js/common.js @@ -71,8 +71,8 @@ var common = (function() { * @param {Object} attrs Dictionary of attributes to set on the module. */ function createNaClModule(name, tool, path, width, height, attrs) { - console.log('%c[createNaClModule, common.js]', 'color: gray;', "name: " + name, "tool: " + tool, "path: " + path,"width: " + width, - "height: " + height, "attrs: " + attrs); + console.log('%c[createNaClModule, common.js]', 'color: gray;', "name: " + name + ", tool: " + tool + ", path: " + path + ", width: " + width + + ", height: " + height + ", attrs: " + JSON.stringify(attrs)); var moduleEl = document.createElement('embed'); moduleEl.setAttribute('name', 'nacl_module'); moduleEl.setAttribute('id', 'nacl_module'); @@ -91,7 +91,7 @@ var common = (function() { var mimetype = mimeTypeForTool(tool); moduleEl.setAttribute('type', mimetype); - console.log('%c[createNaClModule, common.js]', 'color: gray;', "moduleEl: " + moduleEl); + console.log('%c[createNaClModule, common.js]', 'color: gray;', "moduleEl: " + JSON.stringify(moduleEl)); // The element is wrapped inside a
, which has both a 'load' // and a 'message' event listener attached. This wrapping method is used