diff options
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index 3c8e00d8..8650a508 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -31,6 +31,13 @@ $eventDispatcher->addListener( \OCP\Util::addStyle('richdocuments', 'viewer/odfviewer'); } ); +$eventDispatcher->addListener( + 'OCA\Files_Sharing::loadAdditionalScripts', + function() { + \OCP\Util::addScript('richdocuments', 'viewer/viewer'); + \OCP\Util::addStyle('richdocuments', 'viewer/odfviewer'); + } +); if (class_exists('\OC\Files\Type\TemplateManager')) { $manager = \OC_Helper::getFileTemplateManager(); |