Skip to content

Commit

Permalink
Add color to the extension icon when Apollo is connected (#34)
Browse files Browse the repository at this point in the history
* Learning how to edit devtools

* Adding icon changing

* Change the icon when Apollo is present!

* Color change when connected

* Revert app/index.js

* Revert logo

* Build bundle

* Icon now works!

* Added some semicolons
  • Loading branch information
rrdelaney authored May 4, 2017
1 parent cd24d03 commit e204337
Show file tree
Hide file tree
Showing 4 changed files with 4,168 additions and 3,702 deletions.
6 changes: 6 additions & 0 deletions extension/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
chrome.runtime.onMessage.addListener((request, sender) => {
if (request.APOLLO_CONNECTED) {
console.log('Showing action...');
chrome.pageAction.show(sender.tab.id);
}
});
Loading

0 comments on commit e204337

Please sign in to comment.