Skip to content

Commit

Permalink
Use sim branch with service worker
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-robert committed Apr 23, 2024
1 parent 2a7c538 commit 4fe5d63
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/simulator/Simulator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import HideSplitViewButton from "../common/SplitView/HideSplitViewButton";
import { topBarHeight } from "../deployment/misc";
import { DeviceContextProvider } from "../device/device-hooks";
import { SimulatorDeviceConnection } from "../device/simulator";
import { stage } from "../environment";
// import { stage } from "../environment";
import { useLogging } from "../logging/logging-hooks";
import SimulatorActionBar from "./SimulatorActionBar";
import SimulatorSplitView from "./SimulatorSplitView";
Expand All @@ -43,14 +43,15 @@ const Simulator = ({
minWidth,
simFocus,
}: SimulatorProps) => {
const production =
"https://python-simulator.usermbit.org/v/0.1/simulator.html";
const staging =
"https://python-simulator.usermbit.org/staging/simulator.html";
const url = stage === "PRODUCTION" ? production : staging;
// const production =
// "https://python-simulator.usermbit.org/v/0.1/simulator.html";
// const staging =
// "https://python-simulator.usermbit.org/staging/simulator.html";
// const url = stage === "PRODUCTION" ? production : staging;
// For testing with sim branches:
//const branch = "upgrade-mpy";
//const url = `https://review-python-simulator.usermbit.org/${branch}/simulator.html`;
// TODO: Revert.
const branch = "service-worker";
const url = `https://review-python-simulator.usermbit.org/${branch}/simulator.html`;

const ref = useRef<HTMLIFrameElement>(null);
const intl = useIntl();
Expand Down

0 comments on commit 4fe5d63

Please sign in to comment.