File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 44/esm /
55/lib /
66/docs /tmp.md
7+ /.idea
Original file line number Diff line number Diff line change @@ -459,10 +459,9 @@ const confluxFaucetContract = new Conflux().Contract({
459459} )
460460
461461// 初始化钱包
462- window . conflux = new window . AnyWeb . Provider ( {
462+ const provider = new window . AnyWeb . Provider ( {
463463 appId : '693b6401-135a-4dc3-846b-1c05ad2572f6' ,
464464} ) //
465- const provider = window . conflux
466465
467466function getElement ( id ) {
468467 return document . getElementById ( id )
Original file line number Diff line number Diff line change @@ -70,9 +70,6 @@ export class Provider implements IProvider {
7070 this . enable = this . enable . bind ( this )
7171
7272 if ( typeof window !== 'undefined' ) {
73- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
74- // @ts -ignore
75- window . conflux = this
7673 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
7774 // @ts -ignore
7875 window . anyweb = this
You can’t perform that action at this time.
0 commit comments