const { app, BrowserWindow } = require('electron') const path = require('path') const here = app.getAppPath() console.log('here', here) require('./src/data/sqlite-electron-ipc') // Preload const Sentry = require('@sentry/browser') Sentry.init({ dsn: 'http://a12d5c5f800b406f8d1c0c5d2ed63a78@216.128.138.128:8000/1' }) let mainWin function createWindow () { mainWin = new BrowserWindow({ autoHideMenuBar: true, width: 800, height: 600, icon: __dirname + '/src/img/chains.png', webPreferences: { nodeIntegration: true, contextIsolation: false, preload: path.join(here, 'preload.js') }, nodeIntegration: true }) // win.autoHideMenuBar = true; mainWin.loadFile('index.html') } app.whenReady().then(() => { createWindow() })