diff --git a/src/consent.ts b/src/consent.ts index 5f20408..0b0b7df 100644 --- a/src/consent.ts +++ b/src/consent.ts @@ -6,7 +6,7 @@ import { TelemetryOptions } from './types' import { consentVersion } from './meta' export async function ensureUserConsent (options: TelemetryOptions): Promise { - if (options.consent >= consentVersion) { + if (options.consent >= consentVersion || process.env.CODESANDBOX_SSE) { return true }