Skip to content

Upgrade to Manifest V3#7

Open
sckohen wants to merge 1 commit into
robcortez:masterfrom
sckohen:master
Open

Upgrade to Manifest V3#7
sckohen wants to merge 1 commit into
robcortez:masterfrom
sckohen:master

Conversation

@sckohen

@sckohen sckohen commented Jul 16, 2025

Copy link
Copy Markdown

Made changes for Chrome Manifest V3

Made changes for Chrome Manifest V3
Comment thread lib/background.js

function updateBrowserButton(status=null) {
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)')
const isDarkMode = 'dark'

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did override the isDarkMode check as V3 can no longer access window state

Comment thread lib/background.js

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall changes:

  • browserAction migrated to action
  • removed scripts and persistent from manifest.background
  • added service_worker to manifest.background
  • migrated browserAction to action in manifest

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