diff options
author | Stefan Malzner <stefan@adlk.io> | 2017-11-12 21:38:31 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2017-11-12 21:38:31 +0100 |
commit | bae9c632654b3fb67c478997b13e3b85874884d7 (patch) | |
tree | 95c7e419d5598e1ededbe0032e2dfb49416451c8 | |
parent | Add settings option to toggle spell checker (diff) | |
download | ferdium-app-bae9c632654b3fb67c478997b13e3b85874884d7.tar.gz ferdium-app-bae9c632654b3fb67c478997b13e3b85874884d7.tar.zst ferdium-app-bae9c632654b3fb67c478997b13e3b85874884d7.zip |
es6 refactor
-rw-r--r-- | src/webview/plugin.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webview/plugin.js b/src/webview/plugin.js index ffc9084e4..569fa9493 100644 --- a/src/webview/plugin.js +++ b/src/webview/plugin.js | |||
@@ -1,11 +1,11 @@ | |||
1 | const { ipcRenderer } = require('electron'); | 1 | import { ipcRenderer } from 'electron'; |
2 | const path = require('path'); | 2 | import path from 'path'; |
3 | 3 | ||
4 | const RecipeWebview = require('./lib/RecipeWebview'); | 4 | import RecipeWebview from './lib/RecipeWebview'; |
5 | 5 | ||
6 | require('./notifications.js'); | 6 | import './spellchecker.js'; |
7 | require('./spellchecker.js'); | 7 | import './notifications.js'; |
8 | require('./ime.js'); | 8 | import './ime.js'; |
9 | 9 | ||
10 | ipcRenderer.on('initializeRecipe', (e, data) => { | 10 | ipcRenderer.on('initializeRecipe', (e, data) => { |
11 | const modulePath = path.join(data.recipe.path, 'webview.js'); | 11 | const modulePath = path.join(data.recipe.path, 'webview.js'); |