From 6bf0dc99ae98dd6eade0dbd2f4d87ece91061e91 Mon Sep 17 00:00:00 2001 From: Dwayne Harris Date: Tue, 29 Oct 2019 00:22:55 -0400 Subject: [PATCH] WIP --- src/apps/text-app/composer/app.tsx | 1 + src/communicator/index.ts | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) 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