Skip to content

Commit

Permalink
#868 save serverurl to local storage
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps authored and joepio committed Apr 2, 2024
1 parent 64566d5 commit 878becd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions browser/data-browser/src/helpers/AppSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {
import toast from 'react-hot-toast';
import { SIDEBAR_TOGGLE_WIDTH } from '../components/SideBar';
import { handleError } from './loggingHandlers';
import { serverURLStorage } from './serverURLStorage';

interface ProviderProps {
children: ReactNode;
Expand Down Expand Up @@ -52,6 +53,7 @@ export const AppSettingsContextProvider = (
const url = new URL(newDrive);
innerSetDrive(newDrive);
setBaseURL(url.origin);
serverURLStorage.set(url.origin);
},
[innerSetDrive, setBaseURL],
);
Expand Down

0 comments on commit 878becd

Please sign in to comment.