Skip to content

Commit

Permalink
remove window.open
Browse files Browse the repository at this point in the history
  • Loading branch information
Falsal committed Jan 12, 2024
1 parent c4442b2 commit e4daf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/Start/Start.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function Start({
.then((tourExtracted) => {
if (tourExtracted && tourExtracted.data && tourExtracted.data.tour) {
localStorage.setItem("tourId", tour.id);
window.open("/tour?" + searchParams.toString(),"_blank","noreferrer");
// window.open("/tour?" + searchParams.toString(),"_blank","noreferrer");// removed to use <a> tags
}else{
window.location.reload();
}
Expand Down

0 comments on commit e4daf19

Please sign in to comment.