diff options
author | Joas Schilling <coding@schilljs.com> | 2016-08-30 14:31:22 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-08-30 14:31:22 +0300 |
commit | 2f150fbb03035d77699d07316d57162f6c4df65e (patch) | |
tree | e29dc350f02b6972691dc840027c7ede7af334da /js | |
parent | e9ac5560b59f124c686dddd8bd410683cb17ccb8 (diff) |
Open JSON files with the text editor
Diffstat (limited to 'js')
-rw-r--r-- | js/editor.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/js/editor.js b/js/editor.js index 27682ba..a9c19d7 100644 --- a/js/editor.js +++ b/js/editor.js @@ -243,16 +243,17 @@ var Files_Texteditor = { * Registers the file actions */ registerFileActions: function() { - var mimes = Array( - 'text', - 'application/xml', - 'application/x-empty', - 'application/x-php', - 'application/javascript', - 'application/x-pearl', - 'application/x-text', - 'application/yaml' - ); + var mimes = [ + 'text', + 'application/javascript', + 'application/json', + 'application/xml', + 'application/x-empty', + 'application/x-php', + 'application/x-pearl', + 'application/x-text', + 'application/yaml' + ]; _self = this; |