diff --git a/assets/logos/extension-temple.png b/assets/logos/extension-temple.png new file mode 100644 index 000000000..dacf8f452 Binary files /dev/null and b/assets/logos/extension-temple.png differ diff --git a/assets/logos/extension-thanos.png b/assets/logos/extension-thanos.png deleted file mode 100644 index 2ccac9363..000000000 Binary files a/assets/logos/extension-thanos.png and /dev/null differ diff --git a/package-lock.json b/package-lock.json index e2ee80b8e..b8b704003 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@airgap/beacon-sdk", - "version": "2.2.1", + "version": "2.2.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index f57072166..8a1434ede 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@airgap/beacon-sdk", - "version": "2.2.1", + "version": "2.2.2", "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/scripts/generate-wallet-list.ts b/scripts/generate-wallet-list.ts index b06499901..86fbdbfa3 100644 --- a/scripts/generate-wallet-list.ts +++ b/scripts/generate-wallet-list.ts @@ -6,11 +6,11 @@ import { ExtensionApp, WebApp, App, AppBase, DesktopApp } from '../src/ui/alert/ export const extensionList: ExtensionApp[] = [ { id: 'ookjlbkiijinhpmnjffcofjonbfbgaoc', - name: 'Thanos Wallet', - shortName: 'Thanos', + name: 'Temple Wallet', + shortName: 'Temple', color: '', - logo: 'extension-thanos.png', - link: 'https://thanoswallet.com/' + logo: 'extension-temple.png', + link: 'https://templewallet.com/' }, { id: 'gpfndedineagiepkpinficbcbbgjoenn', @@ -30,7 +30,8 @@ export const webList: WebApp[] = [ logo: 'web-kukai.png', links: { [NetworkType.MAINNET]: 'https://wallet.kukai.app', - [NetworkType.DELPHINET]: 'https://testnet.kukai.app' + [NetworkType.DELPHINET]: 'https://testnet.kukai.app', + [NetworkType.EDONET]: 'https://edonet.kukai.app' } } ] diff --git a/src/constants.ts b/src/constants.ts index 2fc688acd..375775d79 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,2 +1,2 @@ -export const SDK_VERSION: string = '2.2.1' +export const SDK_VERSION: string = '2.2.2' export const BEACON_VERSION: string = '2' diff --git a/src/ui/alert/Alert.ts b/src/ui/alert/Alert.ts index 8c29aaa7e..6b0ba4d8d 100644 --- a/src/ui/alert/Alert.ts +++ b/src/ui/alert/Alert.ts @@ -126,7 +126,11 @@ const closeAlert = (id: string): Promise => elm.className = elm.className.replace('fadeIn', 'fadeOut') window.setTimeout(() => { - document.body.removeChild(wrapper) + const parent = wrapper.parentNode + if (parent) { + parent.removeChild(wrapper) + } + if (lastFocusedElement) { ;(lastFocusedElement as any).focus() // set focus back to last focussed element } diff --git a/src/ui/toast/Toast.ts b/src/ui/toast/Toast.ts index d6ac3d8b2..4a7c6c363 100644 --- a/src/ui/toast/Toast.ts +++ b/src/ui/toast/Toast.ts @@ -118,7 +118,10 @@ const closeToast = (): Promise => elm.className = elm.className.replace('fadeIn', 'fadeOut') window.setTimeout(() => { - document.body.removeChild(wrapper) + const parent = wrapper.parentNode + if (parent) { + parent.removeChild(wrapper) + } resolve() }, animationDuration) } else {