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

Extension not working on chrome new tab page #42

Closed
dvandervlag opened this issue Aug 10, 2020 · 1 comment
Closed

Extension not working on chrome new tab page #42

dvandervlag opened this issue Aug 10, 2020 · 1 comment

Comments

@dvandervlag
Copy link

Describe the bug
The extension is not doing anything/working on Chrome's 'New Tab' page, accessed by CMD/CTRL + T in the browser.

To Reproduce
Steps to reproduce the behavior:

  1. Open Chrome Browser
  2. CTRL + T
  3. Try to open extension
  4. Notice it does not work

Expected behavior
Expected extension to also work on the 'New Tab' screen.

Desktop (please complete the following information):

  • OS: Mac OS X (Latest version)
  • Browser: Chrome
  • Version: Latest version
@satendra02
Copy link
Owner

Hi @dvandervlag

To auto-load your content script on every tab on install without refreshing the tab check this issue #7

This boilerplate is injecting script into the host page to function and content scripts must specify match patterns. Check manifest.json file.

{
 "name": "My extension",
 ...
 "content_scripts": [
   {
     "matches": [ "<all_urls>" ],
     ...
   }
 ],
 ...
}

But on opening a new tab using (CTRL + T), it does'nt contain any URL so the extension will not open on that tab. You can use the extension as a popup if you wish to open it on a tab with no URL.

Hope this helps!

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

No branches or pull requests

2 participants