electron/spec-main/fixtures/api/native-window-open-native-addon.html

23 lines
430 B
HTML
Raw Normal View History

<html>
<body>
<script type="text/javascript" charset="utf-8">
2017-04-30 10:43:21 +00:00
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>