We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef10056 commit 5aa6e0dCopy full SHA for 5aa6e0d
src/simulator.ts
@@ -19,9 +19,11 @@ function initServiceWorker() {
19
if ("serviceWorker" in navigator) {
20
window.addEventListener("load", () => {
21
navigator.serviceWorker
22
- .register(`${process.env.E2E_BASE_URL ?? "/"}sw.js`, { scope: "/" })
+ // TODO: We'll need some bundler to get access to env vars here...
23
+ // Hardcoding the review branch for testing purposes for now.
24
+ .register("service-worker/sw.js", { scope: "/" })
25
.then(
- function (registration) {
26
+ function (_registration) {
27
console.log("Simulator ServiceWorker registration successful");
28
},
29
function (err) {
0 commit comments