set explicit comparisions for feature envvars so js can properly optimize

This commit is contained in:
Aaron Qian 2022-11-11 17:44:02 -08:00 committed by Aaron Qian
parent cd2914ca9c
commit a18f4c3b8d
No known key found for this signature in database
GPG key ID: BF1A987C395B5B0E
7 changed files with 17 additions and 13 deletions

View file

@ -1,4 +1,4 @@
import { enable, disable, auto } from 'darkreader';
import { enable, disable, auto, setFetchMethod } from 'darkreader';
import { darkmode } from "@params";
const {
@ -7,6 +7,8 @@ const {
fixes,
} = darkmode.darkreader;
setFetchMethod(window.fetch)
export function setSchemeDark() {
enable(theme, fixes);
}