mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
Set default metadata for javascript callback
This commit is contained in:
parent
9436f33035
commit
4ad79b41f6
@ -351,7 +351,7 @@ var IPython = (function (IPython) {
|
||||
var reply = $.parseJSON(e.data);
|
||||
var content = reply.content;
|
||||
var msg_type = reply.header.msg_type;
|
||||
var metadata = reply.metadata;
|
||||
var metadata = reply.metadata || {};
|
||||
var callbacks = this.get_callbacks_for_msg(reply.parent_header.msg_id);
|
||||
if (msg_type !== 'status' && callbacks === undefined) {
|
||||
// Message not from one of this notebook's cells and there are no
|
||||
|
Loading…
x
Reference in New Issue
Block a user