electron/spec-main/fixtures/api/native-window-open-native-addon.html
Jamie Magee e1ed96b574
test: scope internal test fixtures under @electron-ci (#33822)
* test: scope internal test fixtures under `@electron`

* Missed references

* Move packages from @electron to @electron-ci scope

* Fix tests
2022-05-02 13:09:23 -04:00

22 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>