summaryrefslogtreecommitdiffstats
path: root/apps/theming/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/appinfo')
-rw-r--r--apps/theming/appinfo/app.php14
-rw-r--r--apps/theming/appinfo/routes.php5
2 files changed, 1 insertions, 18 deletions
diff --git a/apps/theming/appinfo/app.php b/apps/theming/appinfo/app.php
index bc8d009063a..784dad7d945 100644
--- a/apps/theming/appinfo/app.php
+++ b/apps/theming/appinfo/app.php
@@ -46,16 +46,4 @@ $linkToCSS = \OC::$server->getURLGenerator()->linkToRoute(
]
);
-$linkToJs = \OC::$server->getURLGenerator()->linkToRoute(
- 'theming.Theming.getJavascript',
- [
- 'v' => \OC::$server->getConfig()->getAppValue('theming', 'cachebuster', '0'),
- ]
-);
-\OCP\Util::addHeader(
- 'script',
- [
- 'src' => $linkToJs,
- 'nonce' => \OC::$server->getContentSecurityPolicyNonceManager()->getNonce()
- ], ''
-);
+\OCP\Util::addScript('theming', 'theming');
diff --git a/apps/theming/appinfo/routes.php b/apps/theming/appinfo/routes.php
index 13196662eb0..527397be985 100644
--- a/apps/theming/appinfo/routes.php
+++ b/apps/theming/appinfo/routes.php
@@ -55,11 +55,6 @@ return ['routes' => [
'verb' => 'GET',
],
[
- 'name' => 'Theming#getJavascript',
- 'url' => '/js/theming',
- 'verb' => 'GET',
- ],
- [
'name' => 'Theming#getManifest',
'url' => '/manifest/{app}',
'verb' => 'GET',