Skip to content

Commit

Permalink
Record when app was first opened
Browse files Browse the repository at this point in the history
  • Loading branch information
seav committed May 2, 2021
1 parent 6f8caf7 commit b756874
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ function initApp() {
RegionFilterValue = localStorage.getItem('region-filter' );
DistanceFilterValue = localStorage.getItem('distance-filter' );
if (DistanceFilterValue) DistanceFilterValue = parseInt(DistanceFilterValue);

// Set app first open time
if (!localStorage.getItem('PN-first-open')) {
localStorage.setItem('PN-first-open', new Date().getTime());
}
}

// -----------------------------------------------------------------------------
Expand Down

0 comments on commit b756874

Please sign in to comment.