Spaces:
Build error
Build error
Delete sunlight/main.js
Browse files- sunlight/main.js +0 -27
sunlight/main.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
| 1 |
-
|
| 2 |
-
const { app, BrowserWindow } = require('electron');
|
| 3 |
-
const path = require('path');
|
| 4 |
-
|
| 5 |
-
function createWindow () {
|
| 6 |
-
const mainWindow = new BrowserWindow({
|
| 7 |
-
width: 800,
|
| 8 |
-
height: 600,
|
| 9 |
-
webPreferences: {
|
| 10 |
-
preload: path.join(__dirname, 'preload.js')
|
| 11 |
-
}
|
| 12 |
-
});
|
| 13 |
-
|
| 14 |
-
mainWindow.loadFile('index.html');
|
| 15 |
-
}
|
| 16 |
-
|
| 17 |
-
app.whenReady().then(() => {
|
| 18 |
-
createWindow();
|
| 19 |
-
|
| 20 |
-
app.on('activate', function () {
|
| 21 |
-
if (BrowserWindow.getAllWindows().length === 0) createWindow();
|
| 22 |
-
});
|
| 23 |
-
});
|
| 24 |
-
|
| 25 |
-
app.on('window-all-closed', function () {
|
| 26 |
-
if (process.platform !== 'darwin') app.quit();
|
| 27 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|