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)) {