Skip to content

Commit

Permalink
feat: make browser builds work in WebWorker/SharedWorker contexts (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d authored Mar 5, 2024
1 parent c825ddc commit 6d3edd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser.protobuf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export default class CentrifugeProtobuf extends Centrifuge {
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).Centrifuge = CentrifugeProtobuf
(globalThis as any).Centrifuge = CentrifugeProtobuf
2 changes: 1 addition & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
import { Centrifuge } from './centrifuge'

// eslint-disable-next-line @typescript-eslint/no-explicit-any
(window as any).Centrifuge = Centrifuge
(globalThis as any).Centrifuge = Centrifuge

0 comments on commit 6d3edd9

Please sign in to comment.