summaryrefslogtreecommitdiff
path: root/test/application/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/application/src')
-rw-r--r--test/application/src/main.js9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/application/src/main.js b/test/application/src/main.js
index bf2144d..d030f18 100644
--- a/test/application/src/main.js
+++ b/test/application/src/main.js
@@ -1,11 +1,18 @@
// Modules to control application life and create native browser window
import { app, BrowserWindow } from 'electron'
-// import { mainReloader, rendererReloader } from '../../../dist'
+import path from 'path'
+
+import { mainReloader, rendererReloader } from '../../../dist'
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
+const dir = path.join(app.getAppPath(), 'temp')
+
+mainReloader(dir)
+rendererReloader(dir)
+
function createWindow () {
// Create the browser window.
mainWindow = new BrowserWindow({