File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export interface PollCoordinator {
3636// ── Notifications gate ───────────────────────────────────────────────────────
3737
3838let _notifLastModified : string | null = null ;
39- let _notifGateDisabled = false ; // Disabled after 403 (missing notifications permission )
39+ let _notifGateDisabled = false ; // Disabled after 403 (notifications scope not granted )
4040
4141function resetPollState ( ) : void {
4242 _notifLastModified = null ;
@@ -54,7 +54,7 @@ onAuthCleared(resetPollState);
5454 * Returns true if there are new notifications (or first check), false if unchanged.
5555 * Uses If-Modified-Since for zero-cost 304 checks (doesn't count against rate limit).
5656 *
57- * Auto-disables after a 403 (missing notifications permission ) to stop wasting
57+ * Auto-disables after a 403 (notifications scope not granted ) to stop wasting
5858 * rate limit tokens on requests that will always fail.
5959 */
6060async function hasNotificationChanges ( ) : Promise < boolean > {
@@ -89,7 +89,7 @@ async function hasNotificationChanges(): Promise<boolean> {
8989 ) {
9090 return false ; // Nothing changed since last check
9191 }
92- // 403 = missing notifications permission — disable gate permanently
92+ // 403 = notifications scope not granted — disable gate permanently
9393 // to stop burning rate limit tokens on every poll cycle
9494 if (
9595 typeof err === "object" &&
You can’t perform that action at this time.
0 commit comments