Skip to content

Add Worker playground #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 4, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Changes following reviewer feedback
  • Loading branch information
bsmth committed Jul 4, 2025
commit edc4799b70c67e811fe0e8029926b8a7e6efc8b2
4 changes: 2 additions & 2 deletions web-workers/worker-playground/import-checks.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down Expand Up @@ -26,7 +26,7 @@
(evt) => {
resolve(evt.data);
},
{ once: true }
{ once: true },
);
w.postMessage(data);
});
Expand Down
5 changes: 0 additions & 5 deletions web-workers/worker-playground/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,8 @@
<head>
<title>Worker Playground</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- import the webpage's stylesheet -->
<link rel="stylesheet" href="style.css" />

<!-- import the webpage's javascript file -->
<script src="script.js" defer></script>
</head>
<body>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
Expand Down
2 changes: 1 addition & 1 deletion web-workers/worker-playground/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function ensureKeepAlive(evt) {
new Promise((resolve) => {
curKeepAliveResolve = resolve;
curKeepAliveTimer = setTimeout(keepAliveTimerFired, extraKeepAliveMs);
})
}),
);
}

Expand Down