Browse Source
Merge pull request #21545 from nextcloud/bugfix/noid/fix-dark-theme-for-guests
Fix dark mode for guests
pull/21535/head
Joas Schilling
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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]); |
|
|
|
} |
|
|
|
} |
|
|
|
|