3.2.0 • Published 6 months ago

@mimirdev/apps-inject v3.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

@mimirdev/apps-inject

Inject the Mimir Wallet into the window.injectedWeb3 of apps.

Usage

Installation -

yarn add @mimirdev/apps-inject

Functions can be imported as follows:

import { inject, isMimirReady, MIMIR_REGEXP } from '@mimirdev/apps-inject';
isMimirReady().then(origin => {
  if (!origin) {
    // not open in mimir

    return;
  }
  // check is "https://app.mimir.global" or "https://dev.mimir.global"
  if (MIMIR_REGEXP.test(origin)) {
    // inject to window.injectedWeb3.mimir
    inject();
    // now. you can use polkadot extension functions
  }
})
1.0.2

12 months ago

1.0.1

12 months ago

3.2.0

6 months ago

3.1.1

8 months ago

1.0.0

12 months ago

3.1.0

8 months ago

3.0.0

8 months ago

2.0.1

8 months ago

2.0.0

9 months ago

0.3.0

1 year ago

0.2.1

1 year ago

0.1.0

2 years ago

0.2.0

2 years ago

0.1.0-beta.0

2 years ago

0.0.0

2 years ago