Accept JSON output data with mime type "application/*+json"

Grant Nestor 10 years ago
parent 4c54f598ac
commit 8e0de400ae

@ -275,7 +275,7 @@ define([
}
var data = bundle.data;
$.map(OutputArea.output_types, function(key){
if (key !== 'application/json' &&
if ((key.indexOf('application/') === -1 || key.indexOf('json') === -1) &&
data[key] !== undefined &&
typeof data[key] !== 'string'
) {

Loading…
Cancel
Save