diff options
author | Robin Appelman <robin@icewind.nl> | 2021-03-26 18:30:57 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-03-26 18:32:28 +0300 |
commit | c752a3f78b1616f3f555eef20bdbd616541dc0ba (patch) | |
tree | c174ecb6d94dd2a298449b873ca210d08c2c10b3 /appinfo/app.php | |
parent | 9dce5ddca0c44119b2eb6777acdcb9abff3a8a94 (diff) |
move to IBootstrap
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/appinfo/app.php b/appinfo/app.php deleted file mode 100644 index 637f915..0000000 --- a/appinfo/app.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -$eventDispatcher = \OC::$server->getEventDispatcher(); - -// only load text editor if the user is logged in -if (\OC::$server->getUserSession()->isLoggedIn()) { - $eventDispatcher->addListener('OCA\Files::loadAdditionalScripts', function () { - OCP\Util::addStyle('files_texteditor', 'merged'); - OCP\Util::addScript('files_texteditor', '../build/editor'); - - $cspManager = \OC::$server->getContentSecurityPolicyManager(); - $csp = new \OCP\AppFramework\Http\ContentSecurityPolicy(); - $csp->addAllowedWorkerSrcDomain("'self'"); - $csp->addAllowedScriptDomain('blob:'); - $cspManager->addDefaultPolicy($csp); - }); -} - -$eventDispatcher->addListener('OCA\Files_Sharing::loadAdditionalScripts', function () { - OCP\Util::addScript('files_texteditor', '../build/public-share'); - OCP\Util::addStyle('files_texteditor', 'public-share'); -}); |