File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ const processCrashBtn = document.getElementById('process-crash')
5
5
6
6
processCrashBtn . addEventListener ( 'click' , ( event ) => {
7
7
const crashWinPath = path . join ( 'file://' , __dirname , '../../sections/windows/process-crash.html' )
8
- let win = new BrowserWindow ( { width : 400 , height : 320 } )
8
+ let win = new BrowserWindow ( {
9
+ width : 400 ,
10
+ height : 320 ,
11
+ webPreferences : {
12
+ nodeIntegration : true
13
+ }
14
+ } ) ;
9
15
10
16
win . webContents . on ( 'crashed' , ( ) => {
11
17
const options = {
Original file line number Diff line number Diff line change @@ -5,7 +5,13 @@ const processHangBtn = document.getElementById('process-hang')
5
5
6
6
processHangBtn . addEventListener ( 'click' , ( event ) => {
7
7
const hangWinPath = path . join ( 'file://' , __dirname , '../../sections/windows/process-hang.html' )
8
- let win = new BrowserWindow ( { width : 400 , height : 320 } )
8
+ let win = new BrowserWindow ( {
9
+ width : 400 ,
10
+ height : 320 ,
11
+ webPreferences : {
12
+ nodeIntegration : true
13
+ }
14
+ } ) ;
9
15
10
16
win . on ( 'unresponsive' , ( ) => {
11
17
const options = {
You can’t perform that action at this time.
0 commit comments