2017-04-30 09:53:31 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
2017-04-30 10:43:21 +00:00
|
|
|
const {ipcRenderer} = require('electron')
|
2017-07-13 15:36:29 +00:00
|
|
|
|
2019-01-12 01:00:43 +00:00
|
|
|
let echo
|
2017-07-13 15:36:29 +00:00
|
|
|
let requireError
|
|
|
|
|
|
|
|
try {
|
2019-01-12 01:00:43 +00:00
|
|
|
echo = require('echo')
|
2017-07-13 15:36:29 +00:00
|
|
|
} catch (error) {
|
|
|
|
requireError = error
|
|
|
|
}
|
|
|
|
|
|
|
|
if (requireError != null) {
|
2019-01-12 01:00:43 +00:00
|
|
|
ipcRenderer.send('answer', `Require echo failed: ${requireError.message}`)
|
2017-07-13 15:36:29 +00:00
|
|
|
} else {
|
2019-01-12 01:00:43 +00:00
|
|
|
ipcRenderer.send('answer', typeof echo)
|
2017-07-13 15:36:29 +00:00
|
|
|
}
|
2017-04-30 09:53:31 +00:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|