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

23 lines
422 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 runas
let requireError
try {
runas = require('runas')
} catch (error) {
requireError = error
}
if (requireError != null) {
ipcRenderer.send('answer', `Require runas failed: ${requireError.message}`)
} else {
ipcRenderer.send('answer', typeof runas)
}
</script>
</body>
</html>