문제

How to update live tile (win 8 app) every 30min? (javascript)

I have function "UpdateIt()" and that update my tile. So question - how I can execute this function in background?

Thanks

도움이 되었습니까?

해결책

var changetitletimer = setInterval(function() { UpdateIt(); } , 1800000);
/* 1800000 is the value for 30min in milliseconds */

if you wish to stop it:

clearInterval(changetitletimer);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top