diff --git a/package-lock.json b/package-lock.json index dc847367a..1c2cb1f8e 100755 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@airgap/beacon-sdk", - "version": "2.3.0", + "version": "2.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@airgap/beacon-sdk", - "version": "2.3.0", + "version": "2.3.1", "license": "MIT", "dependencies": { "@types/chrome": "0.0.115", diff --git a/package.json b/package.json index 8b2beec92..81d6d41aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@airgap/beacon-sdk", - "version": "2.3.0", + "version": "2.3.1", "description": "The beacon-sdk allows you to easily connect DApps with Wallets through P2P communication or a chrome extension.", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", diff --git a/server.ts b/server.ts new file mode 100644 index 000000000..b12e3b536 --- /dev/null +++ b/server.ts @@ -0,0 +1,17 @@ +var StaticServer = require('static-server') +var server1 = new StaticServer({ + rootPath: './examples/', // required, the root of the server file tree + port: 8080, // required, the port to listen + name: 'beacon' // optional, will set "X-Powered-by" HTTP header +}) +var server2 = new StaticServer({ + rootPath: './examples/', // required, the root of the server file tree + port: 8081, // required, the port to listen + name: 'beacon' // optional, will set "X-Powered-by" HTTP header +}) +server1.start(function () { + console.log('Server1 listening to', server1.port) + server2.start(function () { + console.log('Server2 listening to', server2.port) + }) +}) diff --git a/src/clients/dapp-client/DAppClient.ts b/src/clients/dapp-client/DAppClient.ts index 30fc8ac13..9ade917e0 100644 --- a/src/clients/dapp-client/DAppClient.ts +++ b/src/clients/dapp-client/DAppClient.ts @@ -127,7 +127,7 @@ export class DAppClient extends Client { private readonly appMetadataManager: AppMetadataManager - private readonly disclaimerText: string | undefined + private readonly disclaimerText?: string constructor(config: DAppClientOptions) { super({ diff --git a/src/constants.ts b/src/constants.ts index 0c4655392..d57f43207 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,2 +1,2 @@ -export const SDK_VERSION: string = '2.3.0' +export const SDK_VERSION: string = '2.3.1' export const BEACON_VERSION: string = '2' diff --git a/src/events.ts b/src/events.ts index e64bda8fe..61f8f2723 100644 --- a/src/events.ts +++ b/src/events.ts @@ -153,7 +153,7 @@ export interface BeaconEventType { postmessagePeerInfo: () => Promise preferredNetwork: NetworkType abortedHandler?(): void - disclaimerText: string | undefined + disclaimerText?: string } [BeaconEvent.PAIR_SUCCESS]: ExtendedPostMessagePairingResponse | ExtendedP2PPairingResponse [BeaconEvent.CHANNEL_CLOSED]: string diff --git a/src/ui/alert/PairingAlert.ts b/src/ui/alert/PairingAlert.ts index f8ea3a89f..01fc51860 100644 --- a/src/ui/alert/PairingAlert.ts +++ b/src/ui/alert/PairingAlert.ts @@ -111,7 +111,7 @@ export const preparePairingAlert = async ( wallet.clickHandler() const modalEl: HTMLElement | null = shadowRoot.getElementById('beacon-modal__content') - if (modalEl && list.type !== WalletType.EXTENSION) { + if (modalEl && list.type !== WalletType.EXTENSION && list.type !== WalletType.IOS) { modalEl.innerHTML = `${ wallet.logo ? `

Establishing Connection..