diff options
author | Joas Schilling <coding@schilljs.com> | 2020-06-23 19:54:41 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-06-23 19:54:41 +0200 |
commit | 220423e0a503c1e4cabf90346f4d40e707e8f415 (patch) | |
tree | 887d41d07f9b2d7db2fec5bb6e2a98075a4b4849 /apps/accessibility | |
parent | 284ca3e8a8b258d7e2707646a52cfcb3641d5392 (diff) | |
download | nextcloud-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.php | 2 |
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]); } } |