Bext/integrations: Exit early when not logged in
Created by: lguychard
Rel RFC 67
This avoids spamming the console with errors when a browser extension / native integration user is not logged in to his self-hosted Sourcegraph instance.
This check is currently done before:
- Mutations on the page are watched
- UI elements are injected
As a follow-up, userLoggedIn
could be passed into handleCodeHost
, to implement "Level 2: UI Hints" of RFC 67.