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

auto-open Settings tab on extension install #77

Closed
aspiers opened this issue Jan 6, 2024 · 0 comments · Fixed by #78
Closed

auto-open Settings tab on extension install #77

aspiers opened this issue Jan 6, 2024 · 0 comments · Fixed by #78
Assignees
Labels
easy enhancement New feature or request

Comments

@aspiers
Copy link
Member

aspiers commented Jan 6, 2024

Use https://developer.chrome.com/docs/extensions/reference/api/runtime#event-onInstalled

Bard suggested:

chrome.runtime.onInstalled.addListener((details) => {
    if (details.reason === chrome.runtime.OnInstalledReason.INSTALL) {
        chrome.tabs.create({ url: chrome.extension.getURL("settings.html") });
    }
});

Once working, update Usage section of README too.

@aspiers aspiers added the enhancement New feature or request label Jan 6, 2024
@aspiers aspiers added the easy label Jan 6, 2024
@aspiers aspiers self-assigned this Jan 6, 2024
aspiers added a commit that referenced this issue Jan 7, 2024
feat(install): automatically open options page on install (#77)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant