blob: 6f6a78b03c725e964885d0a6bb3aa8a6ba23ee3e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>Page that tries to print during an event</title>
<script>
"use strict";
window.on{{GET[event]}} = () => {
try {
window.print();
} catch (e) {
window.opener.postMessage(`error: ${e.message}`);
}
};
window.opener.postMessage("start", "*");
</script>
|