summaryrefslogtreecommitdiffstats
path: root/apps/accessibility
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-06-23 19:54:41 +0200
committerJoas Schilling <coding@schilljs.com>2020-06-23 19:54:41 +0200
commit220423e0a503c1e4cabf90346f4d40e707e8f415 (patch)
tree887d41d07f9b2d7db2fec5bb6e2a98075a4b4849 /apps/accessibility
parent284ca3e8a8b258d7e2707646a52cfcb3641d5392 (diff)
downloadnextcloud-server-220423e0a503c1e4cabf90346f4d40e707e8f415.tar.gz
nextcloud-server-220423e0a503c1e4cabf90346f4d40e707e8f415.zip
Fix dark mode for guests
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/accessibility')
-rw-r--r--apps/accessibility/lib/AppInfo/Application.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/accessibility/lib/AppInfo/Application.php b/apps/accessibility/lib/AppInfo/Application.php
index 9b79cadb4b6..6d583af07f4 100644
--- a/apps/accessibility/lib/AppInfo/Application.php
+++ b/apps/accessibility/lib/AppInfo/Application.php
@@ -82,7 +82,7 @@ class Application extends App implements IBootstrap {
$userValues = ['dark'];
$hash = md5(implode('-', $userValues));
- $linkToCSS = $this->urlGenerator->linkToRoute(self::APP_NAME . '.accessibility.getCss', ['md5' => $hash]);
+ $linkToCSS = $urlGenerator->linkToRoute(self::APP_ID . '.accessibility.getCss', ['md5' => $hash]);
\OCP\Util::addHeader('link', ['rel' => 'stylesheet', 'media' => '(prefers-color-scheme: dark)', 'href' => $linkToCSS]);
}
}