Merge pull request #21545 from nextcloud/bugfix/noid/fix-dark-theme-for-guests
Fix dark mode for guests
This commit is contained in:
commit
a29359a726
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue