From 72603fd12c29289e237dfcaf56ec36e192346ae8 Mon Sep 17 00:00:00 2001 From: Ashley Date: Fri, 10 Feb 2023 18:10:34 +0000 Subject: [PATCH] fix a goofy ahh issue --- html/poketube.ejs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index 3a8f2f5e..0b71b960 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -1161,11 +1161,13 @@ checkbox.addEventListener('change', function(e) { location.href = "/watch?v=<%- k.Video.Recommendations.Video[0].id%>&autoplay=<%-btoa("1f739d935676111cfff4b4693e3816e664797050" + k.Video.Recommendations.Video[0].id ) %>" } } + if (/[?&]autoplay=/.test(location.search)) { - if(!chebox.check) { + if(!checkbox.checked) { checkbox.checked = true; } } + }); if (/[?&]autoplay=/.test(location.search)) {