Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-08-30 15:02:23 +0300
committerGitHub <noreply@github.com>2016-08-30 15:02:23 +0300
commit408267decbb51262aa91ff15e805073ca0501f9c (patch)
treed4b041a0e1e2e2c48d312f5c811c14fd30022e10
parentc8e1ee620440436928f47f86c03444dd315a2d5f (diff)
parent5a4449943456d038cbf5be7610089b79ecb4b186 (diff)
Open JSON files with the text editor
-rw-r--r--js/editor.js21
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;