try{ refreshUnreadBadge(); setInterval(refreshUnreadBadge, 30000); }catch(e){}