Skip to content

Commit 883ba6d

Browse files
committed
Remove unused function
1 parent b4a608f commit 883ba6d

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/php-wasm/web/src/lib/worker-thread/spawn-php-worker-thread.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,3 @@ function addQueryParams(
2626
}
2727
return urlWithOptions.toString();
2828
}
29-
30-
async function createIframe(workerDocumentURL: string) {
31-
const iframe = document.createElement('iframe');
32-
const relativeUrl = '/' + workerDocumentURL.split('/').slice(-1)[0];
33-
iframe.src = relativeUrl;
34-
iframe.style.display = 'none';
35-
document.body.appendChild(iframe);
36-
await new Promise((resolve) => {
37-
iframe.addEventListener('load', resolve);
38-
});
39-
return iframe;
40-
}

0 commit comments

Comments
 (0)