I am trying to get display information in my chrome extension. I was very successful to get it in manifest version 2 with "system.display" permission. The API I used,
chrome.system.display.getinfo((info)=>{
console.log(info);
}
);
I am trying the same in manifest version 3, but it's giving me the error.
TypeError: Cannot read property 'display' of undefined
My manifest file,
"content_security_policy": {
"extension_pages": "script-src 'self'; object-src 'self'"
},
"host_permissions": ["<all_urls>"],
"permissions": ["activeTab", "tabs", "history", "storage", "system.display"]
Please help me to find out where I am making mistake.
One more thing, I read something like availability: foreground only, in a document of chrome.system.display API. If someone can explain what that exactly means then it'll be great knowledge you share with me.
Thanks