Estou estudando a api do chrome para criar extensões, baixei um exemplo e estou modificando. Estou querendo que minha extensão já inicie fullscreen, fiz varias modificações porém nenhum funcionou. Dei permissão no manifest e nada. Segue meu código abaixo:
chrome.app.runtime.onLaunched.addListener(function() {
// Center window on screen.
var screenWidth = screen.availWidth;
var screenHeight = screen.availHeight;
var width = 500;
var height = 300;
chrome.app.window.create('index.html', {
id: "helloWorldID",
outerBounds: {
width: width,
height: height,
left: Math.round((screenWidth-width)/2),
top: Math.round((screenHeight-height)/2)
}
});
});