Merge claude/1
This commit is contained in:
commit
c2dab953af
@ -708,11 +708,16 @@ class AppTabbedManager {
|
|||||||
this.switchTab('tasks');
|
this.switchTab('tasks');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Monitor URL changes for app navigation
|
// Monitor URL changes for app navigation + listen for task events. These
|
||||||
this.setupURLMonitoring();
|
// add window-level listeners (popstate, taskCreated/Completed/Updated), so
|
||||||
|
// bind them ONCE for the lifetime of this singleton — initialize() re-runs
|
||||||
// Listen for task creation events
|
// on every /app navigation (the `initialized` flag is never set true), and
|
||||||
this.setupTaskEventListeners();
|
// without this guard each visit stacked another set of window listeners.
|
||||||
|
if (!this._listenersWired) {
|
||||||
|
this._listenersWired = true;
|
||||||
|
this.setupURLMonitoring();
|
||||||
|
this.setupTaskEventListeners();
|
||||||
|
}
|
||||||
|
|
||||||
// Set initial active tab (only if no task parameter)
|
// Set initial active tab (only if no task parameter)
|
||||||
if (!taskId) {
|
if (!taskId) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user