Skip to content
Snippets Groups Projects
Commit 5709b20f authored by Lucie Bader's avatar Lucie Bader
Browse files

Correction bouton connexion menu extension

parent 46d19fed
No related branches found
No related tags found
1 merge request!8Test final
...@@ -40,6 +40,7 @@ async function updateConnectionButton() { ...@@ -40,6 +40,7 @@ async function updateConnectionButton() {
button.onclick = async () => { button.onclick = async () => {
await browser.runtime.sendMessage({ action: "toggleAuth" }); await browser.runtime.sendMessage({ action: "toggleAuth" });
await updateConnectionButton();
}; };
} }
...@@ -238,6 +239,7 @@ async function handleToggleExtension() { ...@@ -238,6 +239,7 @@ async function handleToggleExtension() {
const accessToken = await getAccessToken(); const accessToken = await getAccessToken();
if (!accessToken) return; if (!accessToken) return;
await proceedToggleExtension(); await proceedToggleExtension();
await updateConnectionButton();
} }
async function proceedToggleExtension() { async function proceedToggleExtension() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment