MCPcopy Create free account
hub / github.com/dailydotdev/apps / startTcfSubscription

Function startTcfSubscription

packages/shared/src/lib/tcf.ts:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 typeof globalThis.window?.__tcfapi === 'function';
61
62export const startTcfSubscription = (): void => {
63 if (subscribed || typeof globalThis.window?.__tcfapi !== 'function') {
64 return;
65 }
66
67 subscribed = true;
68 globalThis.window.__tcfapi('addEventListener', 2, onTcData);
69};
70
71export const subscribeTcf = (callback: () => void): (() => void) => {
72 listeners.add(callback);

Callers 2

useAdRequestConsentFunction · 0.90
IubendaFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected