diff options
author | Georg Ehrke <georg@ownCloud.com> | 2013-05-30 11:12:12 +0200 |
---|---|---|
committer | Georg Ehrke <georg@ownCloud.com> | 2013-05-30 11:12:12 +0200 |
commit | b944b1c5d29393e1b6f0bc51cf50db6eba356e64 (patch) | |
tree | 93bda5133eaa3c1d144f78a1bfd00c0831ec530a /lib/preview | |
parent | a014662c52f5295a7e86cd43b7dd62b89e3f1085 (diff) | |
download | nextcloud-server-b944b1c5d29393e1b6f0bc51cf50db6eba356e64.tar.gz nextcloud-server-b944b1c5d29393e1b6f0bc51cf50db6eba356e64.zip |
add javascript preview backend
Diffstat (limited to 'lib/preview')
-rw-r--r-- | lib/preview/txt.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/preview/txt.php b/lib/preview/txt.php index 4eb0e820406..f18da66c3b8 100644 --- a/lib/preview/txt.php +++ b/lib/preview/txt.php @@ -58,4 +58,14 @@ class PHP extends TXT { } -\OC\Preview::registerProvider('OC\Preview\PHP');
\ No newline at end of file +\OC\Preview::registerProvider('OC\Preview\PHP'); + +class JavaScript extends TXT { + + public function getMimeType() { + return '/application\/javascript/'; + } + +} + +\OC\Preview::registerProvider('OC\Preview\JavaScript');
\ No newline at end of file |