Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the sidekick to be opened via Javascript similar to v6. #478

Open
dylandepass opened this issue Feb 20, 2025 · 0 comments
Open

Allow the sidekick to be opened via Javascript similar to v6. #478

dylandepass opened this issue Feb 20, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dylandepass
Copy link
Member

The following worked in v6. We need to support this in v7.

    const SIDEKICK_EXTENSION_ID = 'ccfggkjabjahcjoljmgmklhpaccedipo';
    if (window.chrome && window.chrome.runtime) {
      const payload = { owner: env.owner, repo: env.repo, action: 'loadSidekick' };
      window.chrome.runtime.sendMessage(SIDEKICK_EXTENSION_ID, payload, callback);
    } else {
      console.error('No chrome.runtime, cannot send message to the Sidekick');
    }
@dylandepass dylandepass added the enhancement New feature or request label Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant