I am creating edge browser extension. Basically I want to disable the other installed extension, I have a code which is working on chrome extension:
chrome.management.getAll(function (extensionInfo) {
idExtensionEnabled = [];
for (let i in extensionInfo) {
if (extensionInfo[i].enabled && extensionInfo[i].name !== "xxxxx") {
idExtensionEnabled.push(extensionInfo[i].id);
chrome.management.setEnabled(extensionInfo[i].id, false);
}
}
});
I want to make it compatible to edge
then I have searched for edge: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/windows/getAll
But this is not working.
Your help is very appreciated, thank you