diff --git a/packages/php-wasm/web/src/lib/worker-thread/spawn-php-worker-thread.ts b/packages/php-wasm/web/src/lib/worker-thread/spawn-php-worker-thread.ts index 60ce06b31b..d27b166a7e 100644 --- a/packages/php-wasm/web/src/lib/worker-thread/spawn-php-worker-thread.ts +++ b/packages/php-wasm/web/src/lib/worker-thread/spawn-php-worker-thread.ts @@ -26,15 +26,3 @@ function addQueryParams( } return urlWithOptions.toString(); } - -async function createIframe(workerDocumentURL: string) { - const iframe = document.createElement('iframe'); - const relativeUrl = '/' + workerDocumentURL.split('/').slice(-1)[0]; - iframe.src = relativeUrl; - iframe.style.display = 'none'; - document.body.appendChild(iframe); - await new Promise((resolve) => { - iframe.addEventListener('load', resolve); - }); - return iframe; -}