mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Add skeleton webextension.
This commit is contained in:
parent
5db5882f8e
commit
db001cd092
2 changed files with 27 additions and 0 deletions
9
addon/main.js
Normal file
9
addon/main.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// Background script experiments.
|
||||||
|
|
||||||
|
function handleBrowserAction() {
|
||||||
|
browser.tabs.query({active: true}).then(console.log);
|
||||||
|
}
|
||||||
|
|
||||||
|
browser.browserAction.onClicked.addListener(handleBrowserAction);
|
||||||
|
|
||||||
|
console.log("Loaded Tridactyl");
|
18
addon/manifest.json
Normal file
18
addon/manifest.json
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
|
||||||
|
"manifest_version": 2,
|
||||||
|
"name": "Tridactyl",
|
||||||
|
"version": "1.0",
|
||||||
|
|
||||||
|
"background" : {
|
||||||
|
"scripts": ["main.js"]
|
||||||
|
},
|
||||||
|
|
||||||
|
"permissions": ["experiments.gcli"],
|
||||||
|
|
||||||
|
"browser_action": {
|
||||||
|
"default_title": "Tridactyl",
|
||||||
|
"browser_style": true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue