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

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'appinfo/app.php')
-rw-r--r--appinfo/app.php7
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();