@onekeyfe/hd-web-sdk
is a browser implementation of hardware-sdk that creates an iframe and communicates with transport through the iframe to avoid cross-domain issues.
Install library as npm module:
npm install @onekeyfe/hd-web-sdk
or
yarn add @onekeyfe/hd-web-sdk
import { HardwareSDK } from '@onekeyfe/hd-web-sdk';
function init() {
HardwareSDK.init({
debug: false,
connectSrc: 'https://jssdk.onekey.so/'
});
}
Documentation is available hardware-js-sdk