Skip to content

Commit

Permalink
added support for ip4 and ip6 urls in react example
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhil-narayana-klevu committed Jun 25, 2024
1 parent d21c540 commit 9fd2652
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/react-klevu-ui/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ KlevuConfig.init({
visitorServiceUrl: localStorage.getItem("demo-config")
? JSON.parse(localStorage.getItem("demo-config"))?.visitorServiceUrl
: "",
ipv6ServiceUrl: localStorage.getItem("demo-config")
? JSON.parse(localStorage.getItem("demo-config"))?.ipv6ServiceUrl
: "",
ipv4ServiceUrl: localStorage.getItem("demo-config")
? JSON.parse(localStorage.getItem("demo-config"))?.ipv4ServiceUrl
: "",
})

export const nav = [
Expand Down Expand Up @@ -86,6 +92,16 @@ export function App() {
? JSON.parse(localStorage.getItem("demo-config"))?.visitorServiceUrl
: ""
}
ipv6ServiceUrl={
localStorage.getItem("demo-config")
? JSON.parse(localStorage.getItem("demo-config"))?.ipv6ServiceUrl
: ""
}
ipv4ServiceUrl={
localStorage.getItem("demo-config")
? JSON.parse(localStorage.getItem("demo-config"))?.ipv4ServiceUrl
: ""
}
apiKey={
localStorage.getItem("demo-config")
? JSON.parse(localStorage.getItem("demo-config"))?.apiKey
Expand Down

0 comments on commit 9fd2652

Please sign in to comment.