Skip to content

Commit

Permalink
Merge pull request #1427 from crypto-com/dev
Browse files Browse the repository at this point in the history
Internal Release v1.5.0
  • Loading branch information
crypto-matto authored Mar 12, 2024
2 parents 0233a3b + d50839e commit b1ead08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
*Unreleased*

*Released*
## [v1.5.0] - 2024-03-12
### Additions
- Security enhancement on DApp Browser
## [v1.4.9] - 2024-03-07
### Additions
- Security enhancement on DApp Browser
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chain-desktop-wallet",
"version": "1.4.9",
"version": "1.5.0",
"description": "Crypto.com DeFi Desktop Wallet App",
"repository": "github:crypto-com/chain-desktop-wallet",
"author": "Crypto.com <[email protected]>",
Expand Down
7 changes: 0 additions & 7 deletions src/pages/dapp/browser/useIPCProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,6 @@ export const useIPCProvider = (props: IUseIPCProviderProps) => {
}
}
break;
case 'openLinkInDefaultBrowser':
{
const { url } = event.object;
const { shell } = window.require('electron');
shell.openExternal(url);
}
break;
default:
break;
}
Expand Down
9 changes: 1 addition & 8 deletions src/pages/dapp/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export namespace DappBrowserIPC {
export type EventName =
| 'addEthereumChain'
| 'ecRecover'
| 'openLinkInDefaultBrowser'
| 'requestAccounts'
| 'signMessage'
| 'signPersonalMessage'
Expand Down Expand Up @@ -142,12 +141,7 @@ export namespace DappBrowserIPC {
chainId: string;
}
}
export interface OpenLinkInDefaultBrowserEvent extends BaseEvent {
name: 'openLinkInDefaultBrowser';
object: {
url: string;
}
}


export type Event =
| SignTransactionEvent
Expand All @@ -160,7 +154,6 @@ export namespace DappBrowserIPC {
| WatchAssetEvent
| AddEthereumChainEvent
| SwitchEthereumChainEvent
| OpenLinkInDefaultBrowserEvent
| TokenApprovalEvent;
}

Expand Down

0 comments on commit b1ead08

Please sign in to comment.