hardware-example 1.1.4-alpha.1 → 1.1.4-alpha.3

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/preload.ts +2 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "hardware-example",
3
3
  "productName": "HardwareExample",
4
4
  "executableName": "onekey-hardware-example",
5
- "version": "1.1.4-alpha.1",
5
+ "version": "1.1.4-alpha.3",
6
6
  "author": "OneKey",
7
7
  "description": "End-to-end encrypted workspaces for teams",
8
8
  "main": "dist/index.js",
@@ -41,5 +41,5 @@
41
41
  "resolutions": {
42
42
  "**/node-gyp": "^10.0.1"
43
43
  },
44
- "gitHead": "445b0a1622293e2e19ccb7d9e62cc43cd906eef1"
44
+ "gitHead": "10e079a2aa02e79fe378be8af1c87e824c2e5872"
45
45
  }
package/src/preload.ts CHANGED
@@ -46,6 +46,8 @@ ipcRenderer.on(ipcMessageKeys.INJECT_ONEKEY_DESKTOP_GLOBALS, (_, globals) => {
46
46
  try {
47
47
  contextBridge.exposeInMainWorld('ONEKEY_DESKTOP_GLOBALS', globals);
48
48
  } catch (error) {
49
+ // @ts-expect-error
50
+ window.ONEKEY_DESKTOP_GLOBALS = globals;
49
51
  // Fallback for development or when contextBridge is not available
50
52
  console.warn('Failed to expose ONEKEY_DESKTOP_GLOBALS via contextBridge:', error);
51
53
  }