Line data Source code
1 : // SPDX-License-Identifier: LGPL-2.1-or-later
2 : /* An unhandled javascript exception */
3 : import '../lib/patternfly/patternfly-6-cockpit.scss';
4 1 : import cockpit from "cockpit";
5 :
6 1 : const button = document.getElementById("exception");
7 1 : button.addEventListener("click", function() {
8 1 : const obj = { };
9 1 : window.setTimeout(function() {
10 1 : obj[0].value = 1;
11 1 : }, 0);
12 1 : });
13 :
14 1 : cockpit.transport.wait(function() {
15 1 : document.body.removeAttribute("hidden");
16 1 : });
|