fix darkmode endpoint

This commit is contained in:
Jordan Blasenhauer 2024-04-19 12:16:25 +02:00
parent 6181bd035d
commit faad5863aa

View file

@ -234,7 +234,7 @@ class darkMode {
body: JSON.stringify({ darkmode: isDark }),
};
const send = await fetch(
`${location.href.split("/").slice(0, -1).join("/")}/darkmode`,
`${location.origin}/darkmode`,
data,
);
}