(duration = 2000)
| 40 | } |
| 41 | |
| 42 | function showIndicator(duration = 2000) { |
| 43 | if (logTimer) { |
| 44 | clearTimeout(logTimer); |
| 45 | } else { |
| 46 | setBadge(); |
| 47 | } |
| 48 | logTimer = setTimeout(clearBadge, duration); |
| 49 | } |
| 50 | |
| 51 | function setBadge() { |
| 52 | mvelo.action.state({ |