mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2024-12-02 06:23:53 +03:00
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 });
|
||
|
});
|