Skip to content

Commit

Permalink
fix(client-sdk): fix error of last commit:hack process
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Sep 23, 2022
1 parent c2e7a85 commit 85d39cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client-sdk/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/**
* hack `process` missing for wechat miniprogram
*/
declare const wx: any
if (wx && !process) {
if (globalThis.wx && !globalThis.process) {
(globalThis as any).process = {
env: {}
}
Expand Down

0 comments on commit 85d39cd

Please sign in to comment.