Clean up StarterKit view
And show the contents of `/etc/hostname` to make sure cockpit.js is loaded correctly.
This commit is contained in:
parent
ce7a2d3870
commit
8ff4b33bb5
2 changed files with 13 additions and 18 deletions
|
|
@ -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'));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue