diff --git a/macapp/src/app.tsx b/macapp/src/app.tsx index fc1df21c..4a4c7294 100644 --- a/macapp/src/app.tsx +++ b/macapp/src/app.tsx @@ -16,7 +16,10 @@ enum Step { } export default function () { - const [step, setStep] = useState(Step.WELCOME) + const urlParams = new URLSearchParams(window.location.search); + const stepParam = urlParams.get('step'); + const initialStep = stepParam ? Number(stepParam) : Step.WELCOME; + const [step, setStep] = useState(initialStep); const [commandCopied, setCommandCopied] = useState(false) const command = 'ollama run llama2' @@ -29,7 +32,7 @@ export default function () {

Welcome to Ollama

- Let's get you up and running with your own large language models. + {stepParam} Let's get you up and running with your own large language models.