Skip to content

Commit 5aa6e0d

Browse files
Hack the review branch prefix
1 parent ef10056 commit 5aa6e0d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/simulator.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ function initServiceWorker() {
1919
if ("serviceWorker" in navigator) {
2020
window.addEventListener("load", () => {
2121
navigator.serviceWorker
22-
.register(`${process.env.E2E_BASE_URL ?? "/"}sw.js`, { scope: "/" })
22+
// 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: "/" })
2325
.then(
24-
function (registration) {
26+
function (_registration) {
2527
console.log("Simulator ServiceWorker registration successful");
2628
},
2729
function (err) {

0 commit comments

Comments
 (0)