diff --git a/example/index.html b/example/index.html
index b7b6ca2..d1bfbe9 100644
--- a/example/index.html
+++ b/example/index.html
@@ -1,52 +1,9 @@
-
-
-
-
-
>
-
-
-
Type some text!
-
Unknown language
-

-
+
+
-
-
diff --git a/example/main.js b/example/main.js
index 91bef63..a01894b 100644
--- a/example/main.js
+++ b/example/main.js
@@ -1,5 +1,6 @@
const {app, BrowserWindow } = require('electron');
const electronDebug = require('electron-debug');
+const path = require('path');
let mainWindow = null;
electronDebug({enabled: true, showDevTools: true});
@@ -11,7 +12,10 @@ app.on('window-all-closed', () => {
app.on('ready', () => {
mainWindow = new BrowserWindow({
width: 580,
- height: 365
+ height: 365,
+ webPreferences: {
+ preload: path.join(__dirname, 'preload.js')
+ }
});
mainWindow.loadURL(`file://${__dirname}/index.html`);
diff --git a/example/preload.js b/example/preload.js
index f8e73d5..5b59390 100644
--- a/example/preload.js
+++ b/example/preload.js
@@ -1,14 +1,20 @@
-window.ItWorked = true;
-
-const SpellCheckHandler = require('../lib/spell-check-handler').default;
-const ContextMenuListener = require('../lib/context-menu-listener').default;
-const ContextMenuBuilder = require('../lib/context-menu-builder').default;
+const SpellCheckHandler = require("../src/spell-check-handler");
+const ContextMenuListener = require("../src/context-menu-listener");
+const ContextMenuBuilder = require("../src/context-menu-builder");
window.spellCheckHandler = new SpellCheckHandler();
setTimeout(() => window.spellCheckHandler.attachToInput(), 1000);
-window.spellCheckHandler.provideHintText('This is probably the language that you want to check in');
+window.spellCheckHandler.provideHintText(
+ "This is probably the language that you want to check in"
+);
window.spellCheckHandler.autoUnloadDictionariesOnBlur();
-window.contextMenuBuilder = new ContextMenuBuilder(window.spellCheckHandler, null, true);
-window.contextMenuListener = new ContextMenuListener((info) => { window.contextMenuBuilder.showPopupMenu(info); });
+window.contextMenuBuilder = new ContextMenuBuilder(
+ window.spellCheckHandler,
+ null,
+ true
+);
+window.contextMenuListener = new ContextMenuListener(info => {
+ window.contextMenuBuilder.showPopupMenu(info);
+});