Skip to content

Commit 9418d38

Browse files
authored
Merge pull request #983 from trungleduc/fix-voila-log-js
Fix `post` function in log template
2 parents 6418376 + f7d37f9 commit 9418d38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

share/jupyter/voila/templates/base/log.macro.html.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
const _warn = console.warn;
77
const _error = console.error;
88
9-
function post(level, args) {
9+
function post(payload) {
1010
try {
11-
window.top.postMessage({ level: "debug", msg: ["[Voilà]:", ...args] });
11+
window.top.postMessage(payload);
1212
} catch(err) {
1313
window.top.postMessage({ level: "debug", msg: ["[Voilà]:",
1414
"Issue cloning object when posting log message, JSON stringify version is:",
15-
JSON.stringify(args)
15+
JSON.stringify(payload)
1616
] });
1717
}
1818
}

0 commit comments

Comments
 (0)