Skip to content

refactor: deduplicate getCurrentIdentityId into shared compose-utils module#202

Open
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-65
Open

refactor: deduplicate getCurrentIdentityId into shared compose-utils module#202
JuliaKalder wants to merge 1 commit into
mainfrom
fix/issue-65

Conversation

@JuliaKalder
Copy link
Copy Markdown
Owner

Summary

  • Create modules/compose-utils.js with getIdentityIdForTab(tabId) as the single source of truth
  • background.js imports the shared helper and removes its local getCurrentIdentityId definition; all call sites updated to getIdentityIdForTab
  • popup.js imports getIdentityIdForTab and its local getCurrentIdentityId becomes a thin wrapper that queries the active tab then delegates

Fixes #65

- Create modules/compose-utils.js with shared getIdentityIdForTab(tabId)
- background.js imports and uses getIdentityIdForTab, local duplicate removed
- popup.js imports getIdentityIdForTab, thin wrapper resolves active tab then delegates

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MEDIUM] getCurrentIdentityId defined independently in background.js and popup.js with different signatures

1 participant