a9ca152069
* feat:Spellchecker Async Implementation * Adhere to chromium style * Updating dependency to use gh branch * Update docs and electron-typescript-definitions module * Fix lint * Update electron typescript definitions version * Update spec * Address review
14 lines
351 B
HTML
14 lines
351 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
const {ipcRenderer, webFrame} = require('electron')
|
|
webFrame.setSpellCheckProvider('en-US', {
|
|
spellCheck: (words, callback) => {
|
|
callback(words)
|
|
ipcRenderer.send('spec-spell-check', words, callback != undefined)
|
|
}
|
|
})
|
|
</script>
|
|
<input autofocus />
|
|
</body>
|
|
</html>
|