From 0bf6fcd6cd0ef87fc8e41f34fbc939a5f2bd9a7d Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Fri, 8 Nov 2019 09:29:20 +0100 Subject: Create sharing entry point with constants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) Signed-off-by: npmbuildbot[bot] --- apps/files_sharing/lib/AppInfo/Application.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'apps/files_sharing/lib') diff --git a/apps/files_sharing/lib/AppInfo/Application.php b/apps/files_sharing/lib/AppInfo/Application.php index 1e1a2ca1c8b..3cb3d87cfb2 100644 --- a/apps/files_sharing/lib/AppInfo/Application.php +++ b/apps/files_sharing/lib/AppInfo/Application.php @@ -51,8 +51,10 @@ use OCP\EventDispatcher\IEventDispatcher; use OCP\Federation\ICloudIdManager; use OCP\IContainer; use OCP\Files\Config\IMountProviderCollection; +use OCP\IContainer; use OCP\IGroup; use OCP\IServerContainer; +use OCP\Util; use Symfony\Component\EventDispatcher\GenericEvent; class Application extends App { @@ -189,6 +191,11 @@ class Application extends App { $this->registerMountProviders($mountProviderCollection); $this->registerEventsScripts($dispatcher); $this->setupSharingMenus(); + + /** + * Always add main sharing script + */ + Util::addScript(self::APP_ID, 'dist/main'); } protected function registerMountProviders(IMountProviderCollection $mountProviderCollection) { -- cgit v1.2.3