-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
36 lines (32 loc) · 829 Bytes
/
main.js
File metadata and controls
36 lines (32 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
'use strict';
/**
* @author Red Van Josh
* @license MIT
* @version 1.0.0
* Electron Template
*/
/**
* Expose native node path module.
**/
const path = require('path');
/**
* Store the main application base path to the global namepace.
**/
global.__basedir = __dirname;
/**
* Expose Electron app.
* @function app - Electron app.
**/
const { app } = require('electron');
/**
* @namespace AppHandlers - Electron app handlers.
* Helper methods created for handling electron application events.
* @function AppReadyhook - Callback function for app ready event.
* @function AppWindowCloseHook - Callback function for app window close event.
*/
const { AppReadyHook, AppWindowCloseHook } = require('./Handlers/AppHandlers.js');
/**
* Envoke our Application handlers
*/
AppReadyHook(app);
AppWindowCloseHook(app);