Skip to content

Commit

Permalink
fix: fix codesandbox sse env
Browse files Browse the repository at this point in the history
  • Loading branch information
pooya parsa committed Jun 12, 2020
1 parent ef7c56f commit e5d2406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { TelemetryOptions } from './types'
import { consentVersion } from './meta'

export async function ensureUserConsent (options: TelemetryOptions): Promise<boolean> {
if (options.consent >= consentVersion) {
if (options.consent >= consentVersion || process.env.CODESANDBOX_SSE) {
return true
}

Expand Down

0 comments on commit e5d2406

Please sign in to comment.