I'm trying the following code when i click on a button:
chrome.app.window.create('sample.html', {
id: 'test',
'bounds': {
'width': 200,
'height': 200
},
'resizable' : false,
'frame': { type: "none" }
})
console.debug(chrome.app.window.getAll())
var windowcreated = chrome.app.window.get('test');
windowcreated.innerBounds.height = 50;
windowcreated.innerBounds.width = 200;
But here's what the console says:
Uncaught TypeError: Cannot read property 'innerBounds' of null
And the debug of getAll() only returns my original window created in background.js. I don't get what i'm doing wrong...