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

Fix the bug: Chrome extension fails to work on specific video #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

BlueBirdBack
Copy link

#4

This commit fixes the bug where the Chrome extension did not work for certain video URLs. The solution involves using both chrome.tabs.onUpdated and chrome.tabs.onActivated event listeners in background.js to ensure the content script receives the necessary messages.

  • Added chrome.tabs.onActivated event listener with chrome.tabs.get method
  • Updated chrome.tabs.onUpdated event listener to check for 'complete' status

This commit fixes the bug where the Chrome extension did not work
for certain video URLs. The solution involves using both
chrome.tabs.onUpdated and chrome.tabs.onActivated event listeners in
background.js to ensure the content script receives the necessary
messages.

- Added chrome.tabs.onActivated event listener with chrome.tabs.get method
- Updated chrome.tabs.onUpdated event listener to check for 'complete' status
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.

1 participant