View Single Post
Posts: 1,539 | Thanked: 1,604 times | Joined on Oct 2011 @ With my N9
#66
Originally Posted by nieldk View Post
Don't forget to outcomment the function isNight at the end of that file
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?
__________________
Arie|www.everythingn9.com|Nokia N9 64GB x2|Nokia N950

@everythingn9

Temporary Inception Fix


Times Banned from TMO: 4