Skip to content

Commit

Permalink
fix: splash menu iframe doesn't load over https
Browse files Browse the repository at this point in the history
  • Loading branch information
vicwomg committed Dec 26, 2024
1 parent 3e4728a commit 96d3248
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pikaraoke/templates/splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
var confirmationDismissed = false;
var volume = 0.85;

const url = `http://${window.location.host}`;

function startNowPlayingPolling() {
nowPlayingInterval = setInterval(getNowPlaying, 1000);
}
Expand Down Expand Up @@ -263,7 +261,7 @@
} else {
setUserCookie();
$("#menu-container").show();
$("#menu-container iframe").attr("src", url);
$("#menu-container iframe").attr("src", "/");
showMenu = true;
}
});
Expand Down Expand Up @@ -396,7 +394,7 @@
</a>
</div>
<div id="menu-container" class="">
<iframe src="{{ url }}"></iframe>
<iframe src="/"></iframe>
</div>

<!-- Screensaver code -->
Expand Down

0 comments on commit 96d3248

Please sign in to comment.