2018-07-10 19:43:39 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
const {ipcRenderer, webFrame} = require('electron')
|
2018-10-18 16:11:53 +00:00
|
|
|
webFrame.setSpellCheckProvider('en-US', {
|
|
|
|
spellCheck: (words, callback) => {
|
|
|
|
callback(words)
|
|
|
|
ipcRenderer.send('spec-spell-check', words, callback != undefined)
|
2018-07-10 19:43:39 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<input autofocus />
|
|
|
|
</body>
|
|
|
|
</html>
|