22 lines
417 B
HTML
22 lines
417 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
const {ipcRenderer} = require('electron')
|
|
|
|
let echo
|
|
let requireError
|
|
|
|
try {
|
|
echo = require('echo')
|
|
} catch (error) {
|
|
requireError = error
|
|
}
|
|
|
|
if (requireError != null) {
|
|
ipcRenderer.send('answer', `Require echo failed: ${requireError.message}`)
|
|
} else {
|
|
ipcRenderer.send('answer', typeof echo)
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|