Skip to content

Commit

Permalink
Logged in state fix
Browse files Browse the repository at this point in the history
  • Loading branch information
herronjo committed Nov 16, 2024
1 parent a4df358 commit 5c166c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tv/tv.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ window.addEventListener("load", async function() {
}
});

setLoggedinState(api.loggedIn);

socket.on("connect", function() {
listatehooks.push(function(loggedIn) {
if (loggedIn) {
Expand Down Expand Up @@ -142,6 +144,7 @@ window.addEventListener("load", async function() {

if (video.canPlayType("application/vnd.apple.mpegurl")) {
video.src = source;
video.load();
} else if (Hls.isSupported()) {
function waitForGood() {
return new Promise(async function (resolve) {
Expand Down Expand Up @@ -196,7 +199,4 @@ window.addEventListener("load", async function() {
});

// $("#videoplayer").append(source);
video.load();

setLoggedinState(api.loggedIn);
});

0 comments on commit 5c166c9

Please sign in to comment.