Commit 3b9b93a
committed
fix(desktop): preload must be .cjs, not .js (apps/desktop has type:module)
Previous fix wrote CJS code but kept .js extension. Because
apps/desktop/package.json has "type":"module", Node treated the
.js preload as ESM and refused to load it — silently — so window.codesign
never got exposed and every IPC call failed with 'Renderer not connected'.
Use .cjs extension so Node honors the format regardless of package type.
Signed-off-by: hqhq1025 <1506751656@qq.com>1 parent c1aec45 commit 3b9b93a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments