Skip to content

Commit d757623

Browse files
committed
proxy global instead of globalThis
1 parent fdf76f1 commit d757623

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/services/globalProcessProxy.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ function isCallFromExtractZipService() {
1515

1616
export function init() {
1717
// Create a proxy to intercept global property access
18-
globalThis.process = new Proxy(global.process, {
18+
// @ts-expect-error fix later
19+
global.process_old = global.process
20+
// @ts-expect-error fix later
21+
global.process = new Proxy(global.process_old, {
1922
get(target, prop, receiver) {
2023
logInfo(
2124
`XXXXXXXXXX \n \n calling global process \n \n XXXXXXXXXXXXXXXXXXXXXXXXX ', ${prop.toString()}`

0 commit comments

Comments
 (0)