diff --git a/deezer-tooter/browserAction/index.html b/deezer-tooter/browserAction/index.html
index 10c0eda..f3f62cc 100644
--- a/deezer-tooter/browserAction/index.html
+++ b/deezer-tooter/browserAction/index.html
@@ -5,10 +5,10 @@
- -
-
-
-
+
+
+
+
diff --git a/deezer-tooter/browserAction/script.js b/deezer-tooter/browserAction/script.js
index b96fd14..ed0f803 100644
--- a/deezer-tooter/browserAction/script.js
+++ b/deezer-tooter/browserAction/script.js
@@ -13,9 +13,9 @@ function tootInfo(message) {
})
}
-function handleResponse() {
- document.getElementById("artist").innerText = message.artist
- document.getElementById("title").innerText = message.title
+function handleResponse(message) {
+ document.getElementById("toot-info").innerHTML += message.artist + " - " + message.title
+ document.getElementById("toot-hashtags").value += "#radio #np #musique #music"
}
function handleError(error) {
@@ -31,6 +31,6 @@ function getCurrentInfo () {
}
button = document.getElementById('toot-button')
-browser.browserAction.onClicked.addListener(getCurrentInfo)
button.onclick = tootInfo
+document.addEventListener("click", getCurrentInfo)
browser.tabs.executeScript(null, { file: "/content_script.js" });
\ No newline at end of file
diff --git a/deezer-tooter/browserAction/style.css b/deezer-tooter/browserAction/style.css
index e69de29..5286b7f 100644
--- a/deezer-tooter/browserAction/style.css
+++ b/deezer-tooter/browserAction/style.css
@@ -0,0 +1,5 @@
+#toot-content {
+ height: 100px;
+ max-width: 100px;
+ white-space: pre-wrap;
+}
\ No newline at end of file