Clean up StarterKit view

And show the contents of `/etc/hostname` to make sure cockpit.js is
loaded correctly.
This commit is contained in:
Lars Karlitski 2017-10-17 17:39:48 +02:00 committed by Martin Pitt
parent ce7a2d3870
commit 8ff4b33bb5
2 changed files with 13 additions and 18 deletions

View file

@ -18,18 +18,9 @@
* along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
*/
import 'cockpit';
import React from 'react';
import { StarterKit } from './starter-kit-view.jsx';
import { StarterKit } from './starter-kit.jsx';
function render() {
React.render(
React.createElement(
StarterKit,
{title: "Sample Page"}
),
document.getElementById('app')
);
}
document.addEventListener("DOMContentLoaded", render);
document.addEventListener("DOMContentLoaded", function () {
React.render(React.createElement(StarterKit, {}), document.getElementById('app'));
});