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

Output an icon size only #1739

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

Conversation

yfdyh000
Copy link
Contributor

What does this PR do?

  • Bug fix
  • Improvement
  • New feature

I think that outputting multiple sizes is unnecessary and it brings more processing time (CPU times, I see a big time at Firefox Nightly's IconDetails.normalize).
High resolution display is untested.

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browserAction/setIcon
https://developer.chrome.com/extensions/browserAction

Compatibility

Is this PR compatible with old versions? Can users simply upgrade the extension?
Yes.
Please describe any possible breaking changes (or surprising UX differences).
Should not. Firefox Nightly tested.

Screenshots (if applicable)

N/A.

@yfdyh000
Copy link
Contributor Author

# Some legacy Chrome versions will panic if there are other icon sizes.
params.imageData = {19: params.imageData[19], 38: params.imageData[38]}   

need to be tested & fixed, or removed.

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