mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 22:35:24 -04:00
add javascript preview backend
This commit is contained in:
parent
a014662c52
commit
b944b1c5d2
1 changed files with 11 additions and 1 deletions
|
|
@ -58,4 +58,14 @@ class PHP extends TXT {
|
|||
|
||||
}
|
||||
|
||||
\OC\Preview::registerProvider('OC\Preview\PHP');
|
||||
\OC\Preview::registerProvider('OC\Preview\PHP');
|
||||
|
||||
class JavaScript extends TXT {
|
||||
|
||||
public function getMimeType() {
|
||||
return '/application\/javascript/';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
\OC\Preview::registerProvider('OC\Preview\JavaScript');
|
||||
Loading…
Reference in a new issue