Skip to content

Commit

Permalink
hopefully fix safari not working..
Browse files Browse the repository at this point in the history
  • Loading branch information
HielkeMaps committed Apr 13, 2024
1 parent 453f7e2 commit c8309ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/custom/upcoming.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ function onYouTubeIframeAPIReady() {
}

$(function () {
const dateStr = $("#countdownDate").data("countdown-date");

const dateStr = document.getElementById( 'countdownDate' ).getAttribute( 'data-countdown-date' )
const countDownDate = new Date(dateStr);
const countdownOverlay = $("#countdownOverlay");
const countdownText = $("#countdownText");
Expand Down

0 comments on commit c8309ca

Please sign in to comment.