Skip to content

Commit

Permalink
Start migration to standalone
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 15, 2024
1 parent ff8f595 commit 00a2572
Show file tree
Hide file tree
Showing 2 changed files with 1,091 additions and 759 deletions.
7 changes: 7 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ export default function Home({ locale }) {

setScreen("onboarding")


let onboardingLocations = [
{ lat: 40.7598687, long: -73.9764681, country: "US", otherOptions: ["GB", "JP"] },
{ lat: 27.1719752, long: 78.0422793, country: "IN", otherOptions: ["ZA", "FR"] },
Expand Down Expand Up @@ -501,6 +502,12 @@ setShowCountryButtons(false)
}
}, [session])

useEffect(() => {

if(session?.token?.secret && typeof session?.token?.secret === "string") {
window.localStorage.setItem("wg_secret", session.token.secret)
}
}, [session])
const loadOptions =async () => {

// try to fetch options from localstorage
Expand Down
Loading

0 comments on commit 00a2572

Please sign in to comment.