diff options
author | Robin Appelman <robin@icewind.nl> | 2017-06-08 15:08:14 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-06-08 15:09:32 +0300 |
commit | a33a869cc0ae980845005063d931a74d4db28348 (patch) | |
tree | 46579bc7395bf9a23fc0625ebe9de9c120a18875 /appinfo/app.php | |
parent | 01b02f3742a37380bf78f348a034ac5617318761 (diff) |
only load js in the files app
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index d1cdf5a3..008313d1 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -5,4 +5,10 @@ use OCA\GroupFolders\AppInfo\Application; $app = new Application(); $app->register(); -\OC_Util::addScript('groupfolders', 'files'); +$eventDispatcher = \OC::$server->getEventDispatcher(); +$eventDispatcher->addListener( + 'OCA\Files::loadAdditionalScripts', + function() { + \OC_Util::addScript('groupfolders', 'files'); + } +); |