mirror of
				https://github.com/reduxjs/redux-devtools.git
				synced 2025-10-31 16:07:45 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			560 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			560 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| const path = require('path');
 | |
| const { app, BrowserWindow, session } = require('electron');
 | |
| 
 | |
| app.on('window-all-closed', app.quit);
 | |
| app.whenReady().then(async () => {
 | |
|   await session.defaultSession.loadExtension(
 | |
|     path.join(__dirname, '../../../dist'),
 | |
|     { allowFileAccess: true }
 | |
|   );
 | |
| 
 | |
|   const mainWindow = new BrowserWindow({
 | |
|     width: 150,
 | |
|     height: 100,
 | |
|     webPreferences: {
 | |
|       nodeIntegration: true,
 | |
|       contextIsolation: false,
 | |
|     },
 | |
|   });
 | |
|   mainWindow.loadFile('index.html');
 | |
|   mainWindow.webContents.openDevTools({ mode: 'detach' });
 | |
| });
 |