mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-20 15:19:54 +01:00
3704d95c91
* Support frames / workers in browser CDP Co-authored-by: Copilot <copilot@github.com> * path fix Co-authored-by: Copilot <copilot@github.com> * feedback * Normalize blank URLs Co-authored-by: Copilot <copilot@github.com> --------- Co-authored-by: Copilot <copilot@github.com>
16 lines
283 B
HTML
16 lines
283 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head><title>Test Page</title></head>
|
|
<body>
|
|
<script>
|
|
const worker = new Worker("worker.js");
|
|
function sendMessage(text) {
|
|
return new Promise(resolve => {
|
|
worker.onmessage = e => resolve(e.data);
|
|
worker.postMessage(text);
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|