mirror of
https://github.com/daijro/camoufox.git
synced 2026-08-26 08:00:18 +00:00
68216153f3
Adds Playwright's async tests to ensure that functionality is not broken.
10 lines
208 B
HTML
10 lines
208 B
HTML
<div>beforeunload demo.</div>
|
|
<script>
|
|
window.addEventListener('beforeunload', event => {
|
|
// Chromium & WebKit way.
|
|
event.returnValue = 'Leave?';
|
|
// Firefox way.
|
|
event.preventDefault();
|
|
});
|
|
</script>
|