Add the App.commandLine API to control Chromium's command line.

This commit is contained in:
Cheng Zhao 2013-05-17 15:39:44 +08:00
parent 394bf0a8d9
commit 61bca04dfd
4 changed files with 50 additions and 3 deletions

View file

@ -14,6 +14,8 @@ app.on('window-all-closed', function() {
});
delegate.browserMainParts.preMainMessageLoopRun = function() {
app.commandLine.appendSwitch('js-flags', '--harmony_collections');
mainWindow = new BrowserWindow({ width: 800, height: 600 });
mainWindow.loadUrl('file://' + __dirname + '/index.html');