File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -555,13 +555,6 @@ export const useIPCProvider = (props: IUseIPCProviderProps) => {
555555 }
556556 }
557557 break ;
558- case 'openLinkInDefaultBrowser' :
559- {
560- const { url } = event . object ;
561- const { shell } = window . require ( 'electron' ) ;
562- shell . openExternal ( url ) ;
563- }
564- break ;
565558 default :
566559 break ;
567560 }
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ export namespace DappBrowserIPC {
2222 export type EventName =
2323 | 'addEthereumChain'
2424 | 'ecRecover'
25- | 'openLinkInDefaultBrowser'
2625 | 'requestAccounts'
2726 | 'signMessage'
2827 | 'signPersonalMessage'
@@ -142,12 +141,7 @@ export namespace DappBrowserIPC {
142141 chainId : string ;
143142 }
144143 }
145- export interface OpenLinkInDefaultBrowserEvent extends BaseEvent {
146- name : 'openLinkInDefaultBrowser' ;
147- object : {
148- url : string ;
149- }
150- }
144+
151145
152146 export type Event =
153147 | SignTransactionEvent
@@ -160,7 +154,6 @@ export namespace DappBrowserIPC {
160154 | WatchAssetEvent
161155 | AddEthereumChainEvent
162156 | SwitchEthereumChainEvent
163- | OpenLinkInDefaultBrowserEvent
164157 | TokenApprovalEvent ;
165158}
166159
You can’t perform that action at this time.
0 commit comments