Add module support

This commit is contained in:
Donald Atkinson 2020-09-28 02:53:35 -06:00
parent dde38f5d92
commit 88330d0042
2 changed files with 16 additions and 0 deletions

11
desktop.js Normal file
View file

@ -0,0 +1,11 @@
import { app as electron, BrowserWindow as Window } from "electron";
electron.on('ready', () => {
const main = new Window();
main.loadURL(`file://${__dirname}/index.html`);
main.setMenuBarVisibility(false);
})
electron.on('window-all-closed', () => {
electron.quit();
})