mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-23 23:11:12 +02:00
Merge branch 'add-browser-action'
This commit is contained in:
3
src/eventPage.js
Normal file
3
src/eventPage.js
Normal file
@@ -0,0 +1,3 @@
|
||||
chrome.browserAction.onClicked.addListener(function(activeTab) {
|
||||
chrome.tabs.create({ url: chrome.extension.getURL('index.html'), selected: true });
|
||||
});
|
@@ -3,14 +3,21 @@
|
||||
"version": "1.3",
|
||||
"manifest_version": 2,
|
||||
"description": "Convert new tabs into an offline playground for your web experiments",
|
||||
"chrome_url_overrides" : {
|
||||
"newtab": "index.html"
|
||||
},
|
||||
"homepage_url": "https://kushagragour.in/lab/web-maker",
|
||||
"permissions": [
|
||||
"storage"
|
||||
],
|
||||
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
|
||||
"chrome_url_overrides" : {
|
||||
"newtab": "index.html"
|
||||
},
|
||||
"browser_action": {
|
||||
"default_title": "Web Maker",
|
||||
"default_icon": "icon-16.png"
|
||||
},
|
||||
"background": {
|
||||
"scripts": [ "eventPage.js" ],
|
||||
"persistent": false
|
||||
},
|
||||
"icons": {
|
||||
"16": "icon-16.png",
|
||||
"48": "icon-48.png"
|
||||
|
Reference in New Issue
Block a user