Web Inspector: Add application/vnd.api+json as a valid JSON MIME-type
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / Views / CodeMirrorAdditions.js
index a61898b..a18955c 100644 (file)
         CodeMirror.defineMIME(type, "javascript");
     });
 
-    var extraJSONTypes = ["application/x-json", "text/x-json"];
+    var extraJSONTypes = ["application/x-json", "text/x-json", "application/vnd.api+json"];
     extraJSONTypes.forEach(function(type) {
         CodeMirror.defineMIME(type, {name: "javascript", json: true});
     });
-
 })();
 
 WebInspector.compareCodeMirrorPositions = function(a, b)