Skip to content

Commit

Permalink
Fix adjustSanta parameter was applying even when it was not set in th…
Browse files Browse the repository at this point in the history
…e url. (#203)

Co-authored-by: Chris Brewer <[email protected]>
  • Loading branch information
lancehalberd and Chris Brewer authored Oct 2, 2024
1 parent 30a15a1 commit 37ff31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ configureCustomKeys(loaderElement);
if (window.location.hostname !== 'santatracker.google.com') {
try {
const params = new URLSearchParams(window.location.search);
const testLocation = params.get('adjustSanta');
const testLocation = Number.parseFloat(params.get('adjustSanta'));
if (testLocation >= 0 && testLocation <= 1) {
window.santaApp.adjustSanta(testLocation);
}
Expand Down

0 comments on commit 37ff31a

Please sign in to comment.