mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
react dev tools
This commit is contained in:
parent
6774ef19ed
commit
5c3e884e16
17 changed files with 87 additions and 185 deletions
|
@ -1,5 +1,7 @@
|
|||
const electron = require('electron');
|
||||
const { app, BrowserWindow, ipcMain, shell } = require('electron');
|
||||
const path = require('path');
|
||||
const os = require('os');
|
||||
|
||||
function createWindow () {
|
||||
const { width, height } = electron.screen.getPrimaryDisplay().workAreaSize;
|
||||
|
@ -19,6 +21,10 @@ function createWindow () {
|
|||
|
||||
let win = new BrowserWindow(param);
|
||||
|
||||
BrowserWindow.addDevToolsExtension(
|
||||
path.join(os.homedir(), '/Library/Application Support/Google/Chrome/Default/Extensions/fmkadmapgofadopljbjfkapdkoienihi/4.1.2_0')
|
||||
);
|
||||
|
||||
win.loadURL('http://localhost:8080');
|
||||
//win.loadFile('dist/index.html');
|
||||
win.toggleDevTools();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue