()
| 803 | } |
| 804 | |
| 805 | private optimisticUpdateQuota(): void { |
| 806 | try { |
| 807 | const key = 'observer-quota-remaining'; |
| 808 | const current = localStorage.getItem(key); |
| 809 | if (current !== null) { |
| 810 | const n = parseInt(current, 10); |
| 811 | if (!isNaN(n)) { |
| 812 | localStorage.setItem(key, (n - 1).toString()); |
| 813 | window.dispatchEvent(new CustomEvent('quotaUpdated')); |
| 814 | } |
| 815 | } |
| 816 | } catch {} |
| 817 | } |
| 818 | } |
no outgoing calls
no test coverage detected