diff --git a/dist/static/assets/webcam.js b/dist/static/assets/webcam.js index 07c5fa1c..c8988d0a 100644 --- a/dist/static/assets/webcam.js +++ b/dist/static/assets/webcam.js @@ -458,16 +458,18 @@ if (event.reason && event.reason.message && event.reason.stack){ (function(){ const oldLog = console.log; console.log = function () { + oldLog.apply(console, arguments); + const err = new Error(); const logSrc = err.stack.split("\n")[1]; + const args = arguments.map((a) => ""+a); // to string window.parent.postMessage([{ log: [{ method: 'log', - data: arguments, + data: args, id: Date.now().toString() }], source: logSrc }], '*'); - oldLog.apply(console, arguments); }; })(); \ No newline at end of file