Skip to content

Commit

Permalink
Hack the review branch prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Apr 23, 2024
1 parent ef10056 commit 5aa6e0d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ function initServiceWorker() {
if ("serviceWorker" in navigator) {
window.addEventListener("load", () => {
navigator.serviceWorker
.register(`${process.env.E2E_BASE_URL ?? "/"}sw.js`, { scope: "/" })
// TODO: We'll need some bundler to get access to env vars here...
// Hardcoding the review branch for testing purposes for now.
.register("service-worker/sw.js", { scope: "/" })
.then(
function (registration) {
function (_registration) {
console.log("Simulator ServiceWorker registration successful");
},
function (err) {
Expand Down

0 comments on commit 5aa6e0d

Please sign in to comment.