electron/spec/fixtures/pages/visibilitychange.html
Shelley Vohr 6df392162f
fix: pageVisibility state when backgroundThrottling disabled (#39223)
fix: pageVisibility state when backgroundThrottling disabled
2023-07-28 10:48:25 +02:00

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