diff --git a/packages/replay-worker/src/index.ts b/packages/replay-worker/src/index.ts index f038e687c778..51c772295c24 100644 --- a/packages/replay-worker/src/index.ts +++ b/packages/replay-worker/src/index.ts @@ -4,7 +4,7 @@ import workerString from './worker'; * Get the URL for a web worker. */ export function getWorkerURL(): string { - // Safari (particularly on iOS) validates the MIME type of a Blob before it + const workerBlob = new Blob([workerString], { type: 'text/javascript' }); // will execute it as a classic Worker script. A Blob created without an // explicit `type` defaults to an empty string, which WebKit may reject, // firing a bare `error` event with no message. Blink/Gecko are lenient here,