Line data Source code
1 : /*
2 : * This file is part of Cockpit.
3 : *
4 : * Copyright (C) 2017 Red Hat, Inc.
5 : *
6 : * Cockpit is free software; you can redistribute it and/or modify it
7 : * under the terms of the GNU Lesser General Public License as published by
8 : * the Free Software Foundation; either version 2.1 of the License, or
9 : * (at your option) any later version.
10 : *
11 : * Cockpit is distributed in the hope that it will be useful, but
12 : * WITHOUT ANY WARRANTY; without even the implied warranty of
13 : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 : * Lesser General Public License for more details.
15 : *
16 : * You should have received a copy of the GNU Lesser General Public License
17 : * along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
18 : */
19 :
20 : import "cockpit-dark-theme";
21 43 : import React from 'react';
22 :
23 43 : import { createRoot } from 'react-dom/client';
24 :
25 : import 'patternfly/patternfly-6-cockpit.scss';
26 : import Application from './app.jsx';
27 : import './podman.scss';
28 :
29 43 : document.addEventListener("DOMContentLoaded", function () {
30 43 : const root = createRoot(document.getElementById('app'));
31 43 : root.render(<Application />);
32 0 : window.onerror = function(message, source, lineno, colno, error) {
33 0 : console.log('Global error caught:', message, source, lineno, colno, error);
34 : // You can return true to prevent the default error handling
35 0 : };
36 43 : });
|