mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
get_body_data: fix for undefined
return undefined instead of "undefined"
This commit is contained in:
parent
74ca347028
commit
49845b92af
@ -483,7 +483,10 @@ define([
|
||||
* we should never have any encoded URLs anywhere else in code
|
||||
* until we are building an actual request
|
||||
*/
|
||||
return decodeURIComponent($('body').data(key));
|
||||
var val = $('body').data(key);
|
||||
if (!val)
|
||||
return val;
|
||||
return decodeURIComponent(val);
|
||||
};
|
||||
|
||||
var to_absolute_cursor_pos = function (cm, cursor) {
|
||||
|
Loading…
Reference in New Issue
Block a user