Skip to content

Commit

Permalink
Update extension permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiuionescu committed Aug 6, 2019
1 parent 58b2af1 commit 99b9e6d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
12 changes: 8 additions & 4 deletions dist/js/background.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
chrome.runtime.onInstalled.addListener(function() {
chrome.storage.local.set({active: 1}, function() {
console.log('Now Active');
chrome.browserAction.onClicked.addListener(function (tab) {
chrome.tabs.executeScript({
file: 'dist/js/content.js'
});
});
chrome.tabs.insertCSS({
file: 'dist/css/dropdown.min.css'
});
});

16 changes: 4 additions & 12 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,13 @@
"permissions": ["storage", "activeTab"],
"background": {
"scripts": ["dist/js/background.js"],
"persistent": false
"persistent": true
},
"options_page": "dist/options.html",
"page_action": {
"default_icon": {
"32": "favicon.png"
}
"browser_action": {
"default_icon": "favicon.png",
"default_title": "Enable TypeLikeMe Assistant"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["dist/js/content.js"],
"css": ["dist/css/dropdown.min.css"]
}
],
"icons": {
"32": "favicon.png"
}
Expand Down

0 comments on commit 99b9e6d

Please sign in to comment.