Skip to content

Commit

Permalink
fix: cityFood.html page loads after buffering and not index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
sanidhiya-khandelwal committed Jan 5, 2024
1 parent f72b599 commit 2b2695f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ function displayCities(item) {
var pReplace = p.replace(' Restaurants', "").toLowerCase();
setTimeout(() => {
document.querySelector('#overlay').style.display = 'none';
window.location.href = `cityFood.html?city=${encodeURIComponent(pReplace)}`;
}, 2000)
setTimeout(() => {
window.location.href = `cityFood.html?city=${encodeURIComponent(pReplace)}`;
}, 1900)

})
}
Expand Down

0 comments on commit 2b2695f

Please sign in to comment.