Skip to content

Commit

Permalink
Fix finding first param
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Feb 28, 2024
1 parent 6d29dea commit aecef9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions narrowcast_content/upcoming_activities/static/js/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// Get the current URL
const currentUrl = window.location.href;
const currentUrl = new URL(window.location.href);

// Use URLSearchParams to parse the query parameters
const urlParams = new URLSearchParams(currentUrl);
const urlParams = new URLSearchParams(currentUrl.search);

function autoScroll() {
var currentIndex = 0;
Expand Down

0 comments on commit aecef9a

Please sign in to comment.