Packages

Playwright Assets is a package for installing and running test assets in Playwright Node.js and Elixir implementations.

Current section

Files

Jump to
playwright_assets priv assets shared-worker shared-worker.html
Raw

priv/assets/shared-worker/shared-worker.html

<script>
window.sharedWorkerResponsePromise = new Promise(f => {
window.myWorker = new SharedWorker("shared-worker.js");
window.myWorker.port.postMessage('hello');
window.myWorker.port.onmessage = e => f(e.data);
});
</script>