mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-05 16:03:54 +03:00
6782f4ae41
* Move extension * prettier
19 lines
486 B
JavaScript
19 lines
486 B
JavaScript
const path = require('path');
|
|
const { app, BrowserWindow } = require('electron');
|
|
|
|
app.setPath('userData', path.join(__dirname, '../tmp'));
|
|
|
|
app.on('window-all-closed', app.quit);
|
|
app.on('ready', () => {
|
|
BrowserWindow.addDevToolsExtension(
|
|
path.join(__dirname, '../../../build/extension')
|
|
);
|
|
|
|
const mainWindow = new BrowserWindow({
|
|
width: 150,
|
|
height: 100,
|
|
});
|
|
mainWindow.loadURL(`file://${__dirname}/index.html`);
|
|
mainWindow.openDevTools({ detach: true });
|
|
});
|