Install library as npm module:
npm install trezor-connect
or
yarn add trezor-connect
Include library as inline script:
<script src="https://connect.trezor.io/7/trezor-connect.js"></script>
ES6
import TrezorConnect from 'trezor-connect';
CommonJS
var TrezorConnect = require('trezor-connect').default;
Inline
var TrezorConnect = window.TrezorConnect;
Starting with Trezor Connect 7, we have implemented a new feature — Trezor Connect Manifest — which requires that you as a Trezor Connect integrator, to share your e-mail and application url with us. This provides us with the ability to reach you in case of any required maintenance. This subscription is mandatory. Trezor Connect raises an error that reads "Manifest not set. Read more at https://github.com/trezor/connect/blob/develop/docs/index.md" if manifest is not provided.
TrezorConnect.manifest({
email: '[email protected]',
appUrl: 'http://your.application.com'
})