Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: Source/devtools/front_end/CompilerScriptMapping.js

Issue 18341003: DevTools: [CodeMirror] Add syntax highlighting for some other languages. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/CompilerScriptMapping.js
diff --git a/Source/devtools/front_end/CompilerScriptMapping.js b/Source/devtools/front_end/CompilerScriptMapping.js
index fc8acf38095ca7976ff3a1e19731f29236585333..10cb50ef52c7b738ea79b3d02c90f365dc6b2a18 100644
--- a/Source/devtools/front_end/CompilerScriptMapping.js
+++ b/Source/devtools/front_end/CompilerScriptMapping.js
@@ -131,7 +131,7 @@ WebInspector.CompilerScriptMapping.prototype = {
continue;
this._sourceMapForURL[sourceURL] = sourceMap;
if (!this._workspace.hasMappingForURL(sourceURL) && !this._workspace.uiSourceCodeForURL(sourceURL)) {
- var contentProvider = sourceMap.sourceContentProvider(sourceURL, WebInspector.resourceTypes.Script, "text/javascript");
+ var contentProvider = sourceMap.sourceContentProvider(sourceURL, WebInspector.resourceTypes.Script);
this._networkWorkspaceProvider.addFileForURL(sourceURL, contentProvider, true);
}
var uiSourceCode = this._workspace.uiSourceCodeForURL(sourceURL);

Powered by Google App Engine
This is Rietveld 408576698