View Single Post
Guest | Posts: n/a | Thanked: 0 times | Joined on
#67
Originally Posted by Arie View Post
console.log("Sunset:" + sunset);
console.log("Sunrise:" + sunrise);

var t = today.getHours() + today.getMinutes()/60;
console.log("NOW: "+t);
if (t >= sunrise && t < sunset) {
return false;
}
return true;
}

function onDayNightSwitch() {
console.log("onDayNightSwitch");
if (dayNightMode === "auto") {
console.log("Change map mode to: "+!nightMode);
setNightMode(isNight());
}
}

Are you referring to the bold?

Edit: and why?
No, the entire function is commented out by embraced /* */
 

The Following User Says Thank You to For This Useful Post: