Skip to content

Commit

Permalink
Replaced deprecated navigator.platform with navigator.userAgent for p…
Browse files Browse the repository at this point in the history
…latform detection.
  • Loading branch information
manutdkid77 committed Oct 27, 2024
1 parent ee37ad0 commit 4360696
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
if(browserInfo != null){
vm.systemInfo.push({name :"Browser", data: browserInfo.name + " " + browserInfo.version});
}
vm.systemInfo.push({name :"Browser OS", data: getPlatform()});
vm.systemInfo.push({name :"Browser (user agent)", data: getPlatform()});
} );
tourService.getGroupedTours().then(function(groupedTours) {
vm.tours = groupedTours;
Expand Down Expand Up @@ -257,7 +257,7 @@
}

function getPlatform() {
return window.navigator.platform;
return navigator.userAgent;
}

evts.push(eventsService.on("appState.tour.complete", function (event, tour) {
Expand Down

0 comments on commit 4360696

Please sign in to comment.