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:
-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;