mirror of https://github.com/electron/electron
23 lines
430 B
HTML
23 lines
430 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
const {ipcRenderer} = require('electron')
|
|
|
|
let echo
|
|
let requireError
|
|
|
|
try {
|
|
echo = require('@electron-ci/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>
|