Skip to content

Commit

Permalink
fix: use config.alloy as local storage key (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
theSuess authored May 2, 2024
1 parent abc8bc5 commit 5721135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const ModelContext = React.createContext<{
// Model provider
export const ModelProvider = ({ children }: React.PropsWithChildren) => {
const urlModel = new URLSearchParams(document.location.search).get("c");
const localStorageModel = localStorage.getItem("config.river");
const localStorageModel = localStorage.getItem("config.alloy");
let initialModel = "";
if (urlModel) initialModel = atob(urlModel);
else if (localStorageModel) initialModel = localStorageModel;
Expand Down

0 comments on commit 5721135

Please sign in to comment.