Small error in demo code, index missing

master^2
Ruud Schramp 7 years ago
parent 65157383aa
commit 1122c2ef23

@ -14,7 +14,7 @@ commando( 'js-time' , function( params, sender ) {
i = 0;
if ( sender.location ) {
for ( ; i < 4; i++ ) {
if ( times.toLowerCase() == time ) {
if ( times[i].toLowerCase() == time ) {
sender.location.world.setTime( i * 6000 );
break;
}