webterm: cleanup

This commit is contained in:
Fang 2021-09-14 15:18:09 +02:00
parent a675dbda44
commit ac1d73dbbd
No known key found for this signature in database
GPG Key ID: EB035760C1BBA972
2 changed files with 1 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import { Box, Col } from '@tlon/indigo-react';
import React, { Component } from 'react';
import dark from '@tlon/indigo-dark';
import light from '@tlon/indigo-light';
import styled, { ThemeProvider } from 'styled-components';
import { ThemeProvider } from 'styled-components';
import Api from './api';
import { History } from './components/history';
import { Input } from './components/input';
@ -11,7 +11,6 @@ import Store from './store';
import Subscription from './subscription';
import Channel from './lib/channel';
//TODO wrap in themeprovider, as in landscape root app.js
class TermApp extends Component<any, any> {
store: Store;
api: any;
@ -33,7 +32,6 @@ class TermApp extends Component<any, any> {
this.resetControllers();
// eslint-disable-next-line new-cap
const channel = new Channel();
console.log('xx--------', this.props);
this.api = new Api(window.ship, channel);
this.store.api = this.api;

View File

@ -21,9 +21,6 @@
</head>
<body>
<div id="root"></div>
<div id="portal-root"></div>
<!--TODO remove me? -->
<script src="/apps/landscape/desk.js"></script>
<script src="/session.js"></script>
</body>
</html>