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

feat(mv3): Config Migration #1228

Closed
wants to merge 5 commits into from
Closed

Conversation

whizzzkid
Copy link
Contributor

Closes: #1226

Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
@whizzzkid whizzzkid requested review from lidel and a team as code owners July 1, 2023 09:54
@whizzzkid whizzzkid marked this pull request as draft July 1, 2023 09:54
Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
Comment on lines +36 to +38
browser.runtime.onMessage.addListener((message) => {
if (message.type === 'ipfs-companion-migrate') {
browser.runtime.onMessage.removeListener(this)
Copy link
Member

Choose a reason for hiding this comment

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

is browser.runtime.onMessage.removeListener(this) supposed to be removing the anon/lambda function listener? this won't be the function. Change to non-anonymous function if that's the intention

@@ -28,9 +28,23 @@ export async function runPendingOnInstallTasks () {
url: welcomePage
})
case 'onVersionUpdate':
if (!displayReleaseNotes) return
// temporary disabled due to upgrade to MV3.
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to double check the version to ensure mv3 update is what's needed?

@whizzzkid
Copy link
Contributor Author

Closing this as not longer needed, the required config is already in the right place, the only config that's weird is debug and countly, which has to be hard coded in worker context anyways.

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.

2 participants