wip: toolbar icon

This commit is contained in:
Philipp Rothmann 2022-03-08 17:56:32 +01:00
parent 0be4526c4c
commit 0c8ce940a8
3 changed files with 18 additions and 3 deletions

3
background.js Normal file
View file

@ -0,0 +1,3 @@
browser.browserAction.onClicked.addListener((tab) => {
console.log(tab.url);
});

View file

@ -1,4 +1,5 @@
var buttonsize = 250;
document.addEventListener("keyup", (event) => {
if (event.ctrlKey && event.code == "Enter") {
console.log("pressed");
@ -18,6 +19,7 @@ document.addEventListener("keyup", (event) =>{
function onError(error) {
console.log(`Error: ${error}`);
}
function deleteButtons(dashboard)
{
document.getElementById("dashboard-nextcloud-button").remove();

View file

@ -29,6 +29,16 @@
"gecko": {
"id": "addon@example.com"
}
},
"background": {
"scripts": ["background.js"]
},
"browser_action": {
"default_icon": {
"19": "button/geo-19.png",
"38": "button/geo-38.png"
},
"default_title": "Holsteincloud 3.0"
}
}