MCPcopy Index your code
hub / github.com/TanStack/devtools / getGlobalTarget

Method getGlobalTarget

packages/event-bus/src/client/client.ts:209–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 this.#pendingServerEvents = []
208 }
209 private getGlobalTarget() {
210 if (typeof window !== 'undefined') {
211 return window
212 }
213
214 return new EventTarget()
215 }
216 private debugLog(...messages: Array<any>) {
217 if (this.#debug) {
218 console.log('🌴 [tanstack-devtools:client-bus]', ...messages)

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected