mirror of https://github.com/electron/electron
12 lines
335 B
HTML
12 lines
335 B
HTML
<html>
|
|
<body>
|
|
<script type="text/javascript" charset="utf-8">
|
|
const {ipcRenderer} = require('electron')
|
|
ipcRenderer.send('pong', document.visibilityState, document.hidden)
|
|
document.addEventListener('visibilitychange', () => {
|
|
ipcRenderer.send('pong', document.visibilityState, document.hidden)
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|