@onekeyfe/hd-web-sdk 0.1.24 → 0.1.25

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.
@@ -14579,7 +14579,7 @@ const UI_REQUEST = {
14579
14579
  FIRMWARE_NOT_INSTALLED: 'ui-device_firmware_not_installed',
14580
14580
  NOT_USE_ONEKEY_DEVICE: 'ui-device_please_use_onekey_device'
14581
14581
  };
14582
- const DEFAULT_DOMAIN = `https://jssdk.onekey.so/`;
14582
+ const DEFAULT_DOMAIN = `https://jssdk.onekey.so/${"0.1.25"}/`;
14583
14583
  const DEFAULT_PRIORITY = 2;
14584
14584
  const initialSettings = {
14585
14585
  configSrc: './data/config.json',
@@ -46168,7 +46168,7 @@ const src_init = async settings => {
46168
46168
 
46169
46169
  try {
46170
46170
  await init({ ..._settings,
46171
- version: "0.1.24"
46171
+ version: "0.1.25"
46172
46172
  });
46173
46173
  return true;
46174
46174
  } catch (e) {
@@ -46178,14 +46178,20 @@ const src_init = async settings => {
46178
46178
  };
46179
46179
 
46180
46180
  const call = async params => {
46181
- src_Log.debug('call : ', params); // lazy load
46181
+ src_Log.debug('call : ', params);
46182
+ /**
46183
+ * Try to recreate iframe if it's initialize failed
46184
+ */
46182
46185
 
46183
46186
  if (!instance && !timeout) {
46184
46187
  _settings = (0,dist/* parseConnectSettings */._4)(_settings);
46188
+ src_Log.debug("Try to recreate iframe if it's initialize failed: ", _settings);
46185
46189
 
46186
46190
  try {
46187
- src_init(_settings);
46191
+ await src_init(_settings);
46192
+ src_Log.debug('Recreate iframe success');
46188
46193
  } catch (error) {
46194
+ src_Log.debug('Recreate iframe failed: ', error);
46189
46195
  return (0,dist/* createErrorMessage */.xG)(error);
46190
46196
  }
46191
46197
  }