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

Correction déconnexion menu contextuel navigateur

parent 6a6ef7af
No related branches found
No related tags found
1 merge request!8Test final
...@@ -97,10 +97,14 @@ browser.contextMenus.onClicked.addListener(async (info, tab) => { ...@@ -97,10 +97,14 @@ browser.contextMenus.onClicked.addListener(async (info, tab) => {
// Action pour le bouton de connexion/déconnexion // Action pour le bouton de connexion/déconnexion
if (info.menuItemId === "login") { if (info.menuItemId === "login") {
log("🔄 Action login/déconnexion demandée."); log("🔄 Action login/déconnexion demandée.");
if (typeof actuallyOpenLoginPage === "function") { if (authToken) {
actuallyOpenLoginPage(); await disconnectFromLexicalDB();
} else { } else {
log("La fonction actuallyOpenLoginPage n'est pas accessible."); if (typeof actuallyOpenLoginPage === "function") {
actuallyOpenLoginPage();
} else {
log("La fonction actuallyOpenLoginPage n'est pas accessible.");
}
} }
return; return;
} }
......
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