Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit a7589318 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Merge branch 'patch-1' into 'master'

Update common.js

See merge request !112
parents 6015652c 17c0644e
......@@ -91,9 +91,9 @@ function registerEventListener(scope, callback, params) {
function darkmodeRequested() {
const ls = JSON.parse(localStorage.getItem('darkSwitch'));
if (ls) return true;
if (ls === false) return false;
const ls = localStorage.getItem('darkSwitch');
if (ls === "true") return true;
if (ls === "false") return false;
if ((window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches)) return true;
if ($('#darkSwitch').prop('checked')) return true;
return false;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment