Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implémenter un marqueur pour permettre à Weda de détecter la version de Weda-Helper #249

Closed
Refhi opened this issue Sep 16, 2024 · 1 comment

Comments

@Refhi
Copy link
Owner

Refhi commented Sep 16, 2024

côté WH (?)

chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
  if (request.message === "getVersion") {
    const version = chrome.runtime.getManifest().version;
    sendResponse({ version: version });
  }
});

côté Weda (?)

chrome.runtime.sendMessage( "id_extension", // Remplace par l'ID de l'extension { message: "getVersion" }, (response) => { if (response) { console.log("Version de l'extension:", response.version); } } );

ça permettra à Weda de ne pas activer certaines évolutions du logiciel s'il détecte une version de Weda Helper incompatible

@Refhi
Copy link
Owner Author

Refhi commented Sep 28, 2024

#252

@Refhi Refhi closed this as completed Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant