do not load scripts for all apps
This commit is contained in:
parent
89fb78855e
commit
e9d95b6acd
@ -35,7 +35,11 @@ OCP\App::addNavigationEntry(array(
|
|||||||
);
|
);
|
||||||
|
|
||||||
//Script for registering file actions
|
//Script for registering file actions
|
||||||
|
$url = OC::$server->getRequest()->server['REQUEST_URI'];
|
||||||
|
|
||||||
|
if (preg_match('%index.php/apps/files(/.*)?%', $url)) {
|
||||||
OCP\Util::addScript('documents', 'viewer/viewer');
|
OCP\Util::addScript('documents', 'viewer/viewer');
|
||||||
|
}
|
||||||
|
|
||||||
if (OCA\Documents\Config::getConverter() !== 'off'){
|
if (OCA\Documents\Config::getConverter() !== 'off'){
|
||||||
$docFilter = new OCA\Documents\Filter\Office(
|
$docFilter = new OCA\Documents\Filter\Office(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user