How can I use fullscreen on chrome extension...?

57 views
Skip to first unread message

- Yoon

unread,
Oct 6, 2023, 6:01:21 AM10/6/23
to Chromium Extensions
Hello. I used to make chrome extension as some exhibition kiosk. 
But after 2023, I can't use fullscreen. How can I use them on v3 please?
I tried to find out how to use them, but still hard to do... 
please help... 😵‍💫

manifest.json

{
"name": "name",
"description": "description",
"version": "1.0",
"manifest_version": 3,
"permissions": ["serial", "fullscreen", "overrideEscFullscreen"],
"background": {
"service_worker": "background.js"
},
"icons": { "16": "favicon-16x16.png", "32": "favicon-32x32.png", "192": "favicon-192x192.png", "512": "favicon-512x512.png" }
}

background.js
chrome.app.runtime.onLaunched.addListener(function () {
chrome.app.window.create(
"index.html",
{
"bounds": {
"width": 1920,
"height": 1080,
},
},
function (window) {
window.fullscreen();
}
);
});

here is error.

스크린샷 2023-10-06 오후 7.00.22.png

wOxxOm

unread,
Oct 6, 2023, 9:04:40 AM10/6/23
to Chromium Extensions, - Yoon
Chrome extensions aren't chrome apps, so they can't use `chrome.app`. Try adding the "app" section in manifest.json.
Reply all
Reply to author
Forward
0 new messages