Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Register additional browser action icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
Synzvato committed Jun 27, 2018
1 parent 6bd08bb commit 35e63a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ stateManager.requests = {};
stateManager.tabs = {};

stateManager.defaultIconPath = {
'16': chrome.runtime.getURL('icons/action/icon16-default.png'),
'18': chrome.runtime.getURL('icons/action/icon18-default.png'),
'19': chrome.runtime.getURL('icons/action/icon19-default.png'),
'32': chrome.runtime.getURL('icons/action/icon32-default.png'),
Expand All @@ -239,6 +240,7 @@ stateManager.defaultIconPath = {
};

stateManager.disabledIconPath = {
'16': chrome.runtime.getURL('icons/action/icon16-disabled.png'),
'18': chrome.runtime.getURL('icons/action/icon18-disabled.png'),
'19': chrome.runtime.getURL('icons/action/icon19-disabled.png'),
'32': chrome.runtime.getURL('icons/action/icon32-disabled.png'),
Expand Down
1 change: 1 addition & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

"browser_action": {
"default_icon": {
"16": "icons/action/icon16-default.png",
"18": "icons/action/icon18-default.png",
"19": "icons/action/icon19-default.png",
"32": "icons/action/icon32-default.png",
Expand Down

0 comments on commit 35e63a2

Please sign in to comment.