@onekeyfe/hd-web-sdk 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/iframe.html +1 -1
- package/build/js/iframe.74d40db7138f3806e39b.js +3 -0
- package/build/js/{iframe.30bff6a11963ec4059b2.js.LICENSE.txt → iframe.74d40db7138f3806e39b.js.LICENSE.txt} +0 -0
- package/build/js/iframe.74d40db7138f3806e39b.js.map +1 -0
- package/build/onekey-js-sdk.js +11 -3
- package/build/onekey-js-sdk.js.map +1 -1
- package/build/onekey-js-sdk.min.js +1 -1
- package/build/onekey-js-sdk.min.js.map +1 -1
- package/package.json +4 -4
- package/build/js/iframe.30bff6a11963ec4059b2.js +0 -3
- package/build/js/iframe.30bff6a11963ec4059b2.js.map +0 -1
package/build/onekey-js-sdk.js
CHANGED
|
@@ -17519,9 +17519,17 @@ const onDeviceButtonHandler = (...[device, request]) => {
|
|
|
17519
17519
|
postMessage(createDeviceMessage(DEVICE.BUTTON, Object.assign(Object.assign({}, request), {
|
|
17520
17520
|
device: device.toMessageObject()
|
|
17521
17521
|
})));
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17522
|
+
|
|
17523
|
+
if (request.code === 'ButtonRequest_PinEntry') {
|
|
17524
|
+
postMessage(createUiMessage(UI_REQUEST$1.REQUEST_PIN, {
|
|
17525
|
+
device: device.toMessageObject(),
|
|
17526
|
+
type: 'ButtonRequest_PinEntry'
|
|
17527
|
+
}));
|
|
17528
|
+
} else {
|
|
17529
|
+
postMessage(createUiMessage(UI_REQUEST$1.REQUEST_BUTTON, {
|
|
17530
|
+
device: device.toMessageObject()
|
|
17531
|
+
}));
|
|
17532
|
+
}
|
|
17525
17533
|
};
|
|
17526
17534
|
|
|
17527
17535
|
const postMessage = message => {
|