Returns null for missing values, and removes unsupported keys
This means that it probably removes the "contextMenus" permission. This makes it difficult to detect when the author simply forgot to add it. The safest way would be to use fetch(chrome.runtime.getURL('manifest.json')) and read it directly, but that's annoying and makes the function async :(
According to MDN, the API:
This means that it probably removes the
"contextMenus"
permission. This makes it difficult to detect when the author simply forgot to add it. The safest way would be to usefetch(chrome.runtime.getURL('manifest.json'))
and read it directly, but that's annoying and makes the function async :(Context:
Related: