Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Jun 19, 2023
1 parent b4a608f commit 883ba6d
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 883ba6d

Please sign in to comment.