diff --git a/src/apps/text-app/composer/app.tsx b/src/apps/text-app/composer/app.tsx index fb79ddb..f2f9e3f 100644 --- a/src/apps/text-app/composer/app.tsx +++ b/src/apps/text-app/composer/app.tsx @@ -34,6 +34,7 @@ const App: FC = ({ communicator }) => { useEffect(() => { const init = async () => { try { + await communicator.init() await communicator.setHeight(document.body.offsetHeight) } catch (err) { console.error('App Component: ', err) diff --git a/src/communicator/index.ts b/src/communicator/index.ts index fcfbe72..0061f91 100644 --- a/src/communicator/index.ts +++ b/src/communicator/index.ts @@ -34,7 +34,6 @@ export class Communicator { private origin = 'http://localhost:8080' private publicKey: string private listeners: ListenerCollection - private settings?: AppSettings constructor(publicKey: string) { this.publicKey = publicKey