Skip to content

Commit 154e712

Browse files
committed
Updates
1 parent 3cb96f4 commit 154e712

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎js/initial-background.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// inital check for systems which do not have light or dark mode
22
varnightTabData=JSON.parse(localStorage.getItem("nightTab"));
3-
if(!document.querySelector("html").classList.contains("is-ready")){
3+
if(!document.querySelector("html").classList.contains("is-ready")&&!state.get.current()){
44
console.log("hit");
55
if(window.matchMedia("(prefers-color-scheme:light)").matches){
66
if(nightTabData){

0 commit comments

Comments
(0)