diff --git a/deezer-tooter/background-script.js b/deezer-tooter/background-script.js new file mode 100644 index 0000000..cf281b6 --- /dev/null +++ b/deezer-tooter/background-script.js @@ -0,0 +1,34 @@ +// function onError(error) { +// console.error(`Error in background script: ${error}`); +// } + +// function handleMessage(request, sender, sendResponse){ +// console.log("In background : " + request.command) + +// browser.tabs.query({ +// currentWindow: true, +// active: true +// }).then(sendMessageToTabs) +// .then(() => sendResponse({title: "No title yet"}) +// ) +// .catch(onError); + +// } + +// function sendMessageToTabs (tabs){ +// for(let tab of tabs){ +// browser.tabs.sendMessage( +// tab.id, +// {content: "get-title"} +// ).then(response => { +// console.log("Message from content script : " + response) +// }).catch(onError) +// } +// } + +// browser.runtime.onMessage.addListener(handleMessage); + + +// // "background": { +// // "scripts": ["background-script.js"] +// // }, \ No newline at end of file diff --git a/deezer-tooter/browserAction/index.html b/deezer-tooter/browserAction/index.html index 125d948..10c0eda 100644 --- a/deezer-tooter/browserAction/index.html +++ b/deezer-tooter/browserAction/index.html @@ -5,10 +5,11 @@
- + - +