Add attribute to turn on node integration in <webview>

This commit is contained in:
Cheng Zhao 2014-10-25 20:52:42 +08:00
parent d596a7427e
commit 22e3b9df44
11 changed files with 154 additions and 13 deletions

View file

@ -16,7 +16,6 @@ app.on('ready', function() {
width: 800,
height: 600,
resizable: false,
'node-integration': true,
'auto-hide-menu-bar': true,
'use-content-size': true,
'web-preferences': {

View file

@ -56,8 +56,6 @@
</style>
</head>
<body>
<webview id="foo" autosize src="http://www.baidu.com/" style="display:block; width:640px; height:100px"></webview>
<script>
var execPath = require('remote').process.execPath;
var command = execPath + ' path-to-your-app';