Closed bryan closed 4 years ago
autoMatchOsTheme
to avoid to automatically activate darkmode if the browser is in darkmode.toggle();
methodSo basically you need to do something like this
const options = {
autoMatchOsTheme: false
}
const darkmode = new Darkmode(options);
darkmode.showWidget();
darkmode.toggle();
Thanks, solution is workable.
Is there a way to start it in dark mode via the options or to force dark mode to be the default on initial load?