Skip to content

Commit

Permalink
Bug #204894 [ALL] React APP Telemetry not working for root url
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyapandetekdi committed Sep 18, 2023
1 parent 457edcf commit d1d532a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ function App() {
const location = useLocation();
let ranonce = false;



useEffect(() => {
const setFp = async () => {
const fp = await FingerprintJS.load();
Expand All @@ -38,9 +36,7 @@ function App() {
localStorage.setItem('did', visitorId);
initService();
};

setFp();

setFp();

const initService = () => {
if (localStorage.getItem('fpDetails_v2') !== null) {
Expand Down Expand Up @@ -87,9 +83,8 @@ function App() {
ranonce = true;
}
};


}, []);

useEffect(() => {
const cleanup = () => {
if (localStorage.getItem('contentSessionId') === null) {
Expand Down

0 comments on commit d1d532a

Please sign in to comment.