Skip to content

Commit

Permalink
Use same mode for .js and .json files
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsawicki committed Sep 10, 2012
1 parent 9675d3f commit 87f1db1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/assets/source-editor.js
Expand Up @@ -61,13 +61,10 @@ function getMode(extension) {
mode.file = "clike";
break;
case "js":
case "json":
mode.mode = "text/javascript";
mode.file = "javascript";
break;
case "json":
mode.mode = "application/json";
mode.file = extension;
break;
case "md":
case "markdown":
mode.mode = "gfm";
Expand Down

0 comments on commit 87f1db1

Please sign in to comment.