0

I'm busy with a chrome extension in which I want to know which other extensions have being installed. I tried to used chrome.management.getAll() but I can't get it to work.

My manifest looks like this:

{
    ...
    "manifest_version": 3,
    "permissions": [
        "management",
        ...
    ],
    ...
}

I tried to run the following code in both content/script.js as background.js

chrome.management.getAll(function(info) {
    console.log(info);
    alert(info);
});

background.js gives me no response of any kind, no error but no log aswell. content/script.js gives me this however:

Error handling response: TypeError: Cannot read properties of undefined (reading 'getAll')

What am I doing wrong?

IMarks
  • 187
  • 11

0 Answers0