electron/spec/fixtures/api/close.html
Milan Burda d78f37ec8f
refactor: use node scheme imports in spec (#38487)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-06-15 10:42:27 -04:00

10 lines
261 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
window.addEventListener('unload', function (e) {
require('node:fs').writeFileSync(__dirname + '/close', 'close');
}, false);
window.onload = () => window.close();
</script>
</body>
</html>