mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
14 lines
259 B
HTML
14 lines
259 B
HTML
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<title>Worker test</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<script>
|
||
|
var worker = new Worker('worker.js');
|
||
|
worker.onmessage = function(message) {
|
||
|
console.log(message.data);
|
||
|
};
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|