()
| 23 | * Increments the count of open dashboard tabs in localStorage. |
| 24 | */ |
| 25 | const increment = () => { |
| 26 | let current = parseInt(localStorage.getItem(countKey) || '0', 10); |
| 27 | if (!navigator.serviceWorker.controller && current > 0) { |
| 28 | current = 0; |
| 29 | } |
| 30 | localStorage.setItem(countKey, String(current + 1)); |
| 31 | }; |
| 32 | |
| 33 | /** |
| 34 | * Decrements the count of open dashboard tabs in localStorage. |
no outgoing calls
no test coverage detected