mirror of
https://github.com/pi-hole/web.git
synced 2026-04-22 01:39:50 +01:00
Suppress white 'flashing' on page reloading in dark mode.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -175,6 +175,11 @@
|
||||
* Please see LICENSE file for your rights under this license. -->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<?php if ($darkmode) { ?>
|
||||
<style>
|
||||
html { background-color: black; }
|
||||
</style>
|
||||
<?php } ?>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://api.github.com; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'">
|
||||
<title>Pi-hole<?php if (gethostname()) {echo " - ", gethostname();} ?></title>
|
||||
|
||||
Reference in New Issue
Block a user