From fa67459868cfe7cbacdbc1a8a615b41db13acf8f Mon Sep 17 00:00:00 2001 From: Sven Date: Fri, 2 Feb 2024 14:54:57 +0100 Subject: [PATCH] replace injected and announced --- .../src/views/w3m-connect-view/index.ts | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/scaffold/src/views/w3m-connect-view/index.ts b/packages/scaffold/src/views/w3m-connect-view/index.ts index f228dbf89f..60ce89ed20 100644 --- a/packages/scaffold/src/views/w3m-connect-view/index.ts +++ b/packages/scaffold/src/views/w3m-connect-view/index.ts @@ -138,41 +138,41 @@ export class W3mConnectView extends LitElement { ) } - private injectedTemplate() { + private announcedTemplate() { return this.connectors.map(connector => { - if (connector.type !== 'INJECTED') { - return null - } - - if (!ConnectionController.checkInstalled()) { + if (connector.type !== 'ANNOUNCED') { return null } return html` this.onConnector(connector)} + tagVariant="success" + .installed=${true} > ` }) } - private announcedTemplate() { + private injectedTemplate() { return this.connectors.map(connector => { - if (connector.type !== 'ANNOUNCED') { + if (connector.type !== 'INJECTED') { + return null + } + + if (!ConnectionController.checkInstalled()) { return null } return html` this.onConnector(connector)} - tagVariant="success" - .installed=${true} > `