Suppress white 'flashing' on page reloading in dark mode.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2020-05-02 12:28:41 +02:00
parent b5e64653db
commit eefbef678c
2 changed files with 20 additions and 7 deletions

View File

@@ -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>