Add attribute to turn on node integration in <webview>
This commit is contained in:
parent
d596a7427e
commit
22e3b9df44
11 changed files with 154 additions and 13 deletions
|
@ -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': {
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue