Skip to content

Commit 3cb96f4

Browse files
committed
Updates
1 parent e6a3eb7 commit 3cb96f4

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

‎js/initial-background.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
// inital check for systems which do not have light or dark mode
22
varnightTabData=JSON.parse(localStorage.getItem("nightTab"));
33
if(!document.querySelector("html").classList.contains("is-ready")){
4+
console.log("hit");
45
if(window.matchMedia("(prefers-color-scheme:light)").matches){
56
if(nightTabData){
67
if(nightTabData.state.theme.style=="dark"){
7-
document.querySelector("html").setAttribute("style","background-color:rgb(0,0,0)");
8+
document.querySelector("html").setAttribute("style","background-color:rgb(0, 0, 0)");
89
};
910
};
1011
}elseif(window.matchMedia("(prefers-color-scheme:dark)").matches){
1112
if(nightTabData){
1213
if(nightTabData.state.theme.style=="light"){
13-
document.querySelector("html").setAttribute("style","background-color:rgb(255,255,255)");
14+
document.querySelector("html").setAttribute("style","background-color:rgb(255,255,255)");
1415
};
1516
};
1617
};

‎js/nighttab.min.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎js/nighttab.min.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)