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

Refactors badge.displayBrowserActionBadge #1279

Closed
wants to merge 2 commits into from

Conversation

hritvi
Copy link
Contributor

@hritvi hritvi commented Oct 1, 2018

Fixes #973
Refactors badge.displayBrowserActionBadge to be used in both popup.js and messageHandler.js

Copy link
Contributor

@jonathanKingston jonathanKingston left a comment

Choose a reason for hiding this comment

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

@hritvi
Copy link
Contributor Author

hritvi commented Oct 3, 2018

@jonathanKingston I have made the required changes. Please review 🙂

@jonathanKingston
Copy link
Contributor

@hritvi When running the code I am getting the following error in the browser toolbox:

TypeError: background.backgroundLogic is undefined[Learn More] popup.js:157:11

It looks like you are using a const at the top of the function to a string rather than importing the code into the popup. Take a look at the other areas where we share code, we are usually using browser.runtime.sendMessage which sends over a message to the background script where the actual work is done.

@groovecoder
Copy link
Member

Thank you for your previous contributions to Multi-Account Containers. We're closing PRs with conflicts to prepare this repo for some work in the near future. If you would like to re-submit the changes in a branch from the latest master code, we would love to take another look at this!

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.

Refactor badge.displayBrowserActionBadge to be used in both popup.js and messageHandler.js
3 participants