Skip to content

Commit 05f4dc1

Browse files
committed
Use gray icon by default for page action to fix regression in Chrome
Related to #600
1 parent dcc9495 commit 05f4dc1

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/app/middlewares/api.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,10 @@ function onConnect(port) {
178178
connections.tab[id] = port;
179179
listener = msg => {
180180
if (msg.name === 'INIT_INSTANCE') {
181-
if (typeof id === 'number') chrome.pageAction.show(id);
181+
if (typeof id === 'number') {
182+
chrome.pageAction.show(id);
183+
chrome.pageAction.setIcon({tabId: id, path: 'img/logo/38x38.png'});
184+
}
182185
if (isMonitored) port.postMessage({ type: 'START' });
183186

184187
const state = window.store.getState();

src/assets/img/logo/gray.png

3.55 KB
Loading

src/browser/extension/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage_url": "https://github.com/zalmoxisus/redux-devtools-extension",
77
"manifest_version": 2,
88
"page_action": {
9-
"default_icon": "img/logo/38x38.png",
9+
"default_icon": "img/logo/gray.png",
1010
"default_title": "Redux DevTools",
1111
"default_popup": "window.html#popup"
1212
},

0 commit comments

Comments
 (0)