2020-02-04 08:54:03 +07:00
|
|
|
const electron = require("electron");
|
|
|
|
const { app, BrowserWindow } = electron;
|
2020-02-13 12:42:46 +07:00
|
|
|
const Store = require("electron-store");
|
2020-02-04 08:54:03 +07:00
|
|
|
|
|
|
|
let mainWindow;
|
2020-02-13 12:42:46 +07:00
|
|
|
const store = new Store();
|
|
|
|
|
|
|
|
store.set('unicorn', '🦄');
|
|
|
|
console.log(store.get('unicorn'));
|
2020-02-04 08:54:03 +07:00
|
|
|
|
|
|
|
app.on("ready", () => {
|
|
|
|
mainWindow = new BrowserWindow({
|
|
|
|
width: 1000,
|
|
|
|
height: 700
|
|
|
|
});
|
|
|
|
|
2020-02-13 12:42:46 +07:00
|
|
|
mainWindow.setFullScreen(true)
|
|
|
|
mainWindow.setTitle("DR PROFESSIONAL CLINIC");
|
2020-02-04 08:54:03 +07:00
|
|
|
mainWindow.loadURL("http://clinic.cubetiq.online");
|
|
|
|
|
|
|
|
mainWindow.on("closed", () => {
|
|
|
|
mainWindow = null;
|
|
|
|
});
|
|
|
|
});
|