Groundnet Scan

This commit is contained in:
portree_kid
2019-12-17 21:10:58 +01:00
parent b81348bdb8
commit 6adffb8878
29 changed files with 1744 additions and 1496 deletions
+7 -4
View File
@@ -6,9 +6,9 @@ import { app, BrowserWindow } from 'electron'
* Set `__static` path to static files in production
* https://simulatedgreg.gitbooks.io/electron-vue/content/en/using-static-assets.html
*/
if (process.env.NODE_ENV !== 'development') {
global.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
}
// if (process.env.NODE_ENV !== 'development') {
// global.__static = require('path').join(__dirname, '/static').replace(/\\/g, '\\\\')
// }
let mainWindow
const winURL = process.env.NODE_ENV === 'development'
@@ -22,9 +22,12 @@ function createWindow () {
mainWindow = new BrowserWindow({
height: 563,
useContentSize: true,
webPreferences: {
nodeIntegration: true,
nodeIntegrationInWorker: true
},
width: 1000
})
mainWindow.loadURL(winURL)
mainWindow.on('closed', () => {