2.1.0 • Published 2 months ago

@portkey/extension-provider v2.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

This project creates javascript code that will be injected into Portkey APP's WebView environment, for providing basic functions for DApp developers.

Usage

1. Use @portkey/detect-provider

We recommend to use the @portkey/detect-provider package to detect if Portkey is injected.
Click the link above to learn more.

2. Detect provider by your own code (not recommended)

provider will be injected to the window or globalThis.window object, providing you a way to detect it directly.
Also, when provider is injected, an event named portkeyInitEvent will be triggered on the host object (window).

const detectedProvider:IProvider = window.portkey;
if(!detectedProvider){
    // Portkey is not injected yet
    window.addEventListener('portkeyInitEvent', ()=>{
      const provider = window.portkey;
      // Do something with the provider
      ...
    });
  }

You can find more details and examples in @portkey/detect-provider 's README doc.

2.1.0

2 months ago

2.1.0-alpha.1

2 months ago

2.1.0-alpha.0

2 months ago

2.0.0-alpha.5

4 months ago

2.0.0-alpha.3

4 months ago

2.0.0-alpha.4

4 months ago

2.0.0-alpha.2

4 months ago

2.0.0-alpha.1

4 months ago

1.1.1

4 months ago

2.0.0-alpha.0

4 months ago

1.1.0

7 months ago

1.0.1

9 months ago

1.1.0-alpha.2

8 months ago

1.1.0-alpha.5

7 months ago

1.1.0-alpha.3

7 months ago

1.1.0-alpha.4

7 months ago

1.1.1-alpha.0

5 months ago

1.1.1-alpha.1

5 months ago

1.0.0

11 months ago

1.0.1-alpha.0

11 months ago

0.0.1-alpha.26

11 months ago

0.0.1-alpha.25

11 months ago

0.0.1-alpha.24

11 months ago

0.0.1-alpha.22

11 months ago

0.0.1-alpha.21

11 months ago

0.0.1-alpha.20

11 months ago

0.0.1-alpha.19

11 months ago

0.0.1-alpha.18

11 months ago

0.0.1-alpha.17

11 months ago

0.0.1-alpha.16

11 months ago

0.0.1-alpha.15

11 months ago

0.0.1-alpha.14

11 months ago

0.0.1-alpha.13

11 months ago

0.0.1-alpha.12

11 months ago

0.0.1-alpha.11

11 months ago

0.0.1-alpha.10

11 months ago

0.0.1-alpha.9

11 months ago

0.0.1-alpha.8

11 months ago

0.0.1-alpha.7

12 months ago

0.0.1-alpha.6

12 months ago

0.0.1-alpha.5

12 months ago

0.0.1-alpha.4

12 months ago