Skip to content

Commit

Permalink
Permission modified
Browse files Browse the repository at this point in the history
manifest.json
"permissions", "http://*/" added.
  • Loading branch information
raichu2652 committed Apr 30, 2015
1 parent 61615ff commit 26ebcfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ chrome.extension.onMessage.addListener(function(message, sender, sendResponse) {
switch(message.type) {
case "colors-div":
var divs = document.querySelectorAll("div");

console.log(divs);
if(divs.length === 0) {
alert("There are no any divs in the page.");
} else {
Expand Down
4 changes: 4 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@

"omnibox": { "keyword" : "yeah" },

"permissions": [
"http://*/"
],

"browser_action": {
"default_icon": {
"19": "icons/19x19.png",
Expand Down

0 comments on commit 26ebcfb

Please sign in to comment.