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
parent
commit
a29359a726
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/accessibility/lib/AppInfo/Application.php

2
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]);
}
}

Loading…
Cancel
Save