chrome.app.window.create

25 views
Skip to first unread message

BL

unread,
Apr 23, 2014, 7:25:16 PM4/23/14
to native-cli...@googlegroups.com
Hi,
I know to call chrome.app.window.create(url,...), we must load the unpacked extension using manifest.json file as below.
Is it possible without loading the extension with "Developer mode", we use html page (html + js) to call chrome.app.window.create() ?

===========manifest.json======
{
"manifest_version": 2,
"name": "Sample",
"description": "Sample",
"version": "1",
"icons": {
"128": "icon_128.jpg"
},
"app": {
"background": {
"scripts": ["main.js"]
}
}
}
============main.js========
chrome.app.runtime.onLaunched.addListener(function() {
chrome.app.window.create('index.html', {
'width': 800,
'height': 800,
});
});
============

Reply all
Reply to author
Forward
0 new messages