diff options
author | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-09 18:55:04 +0200 |
---|---|---|
committer | zrose584 <57181548+zrose584@users.noreply.github.com> | 2020-10-09 18:55:04 +0200 |
commit | 6a7d0557e24eb8e1b738ca4bd2eae3eef8371288 (patch) | |
tree | dfd0bc21f4006638f9c5e752df5cb583a7a0dbc2 /youtube/templates/watch.html | |
parent | fd9bb643f8272ae681e0caeca8803b539b147448 (diff) | |
download | yt-local-6a7d0557e24eb8e1b738ca4bd2eae3eef8371288.tar.lz yt-local-6a7d0557e24eb8e1b738ca4bd2eae3eef8371288.tar.xz yt-local-6a7d0557e24eb8e1b738ca4bd2eae3eef8371288.zip |
jinja: only include 'comments.js' if needed
Diffstat (limited to 'youtube/templates/watch.html')
-rw-r--r-- | youtube/templates/watch.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube/templates/watch.html b/youtube/templates/watch.html index c44e01d..86644ea 100644 --- a/youtube/templates/watch.html +++ b/youtube/templates/watch.html @@ -690,9 +690,11 @@ Reload without invidious (for usage of new identity button).</a> {% endif %} <script src="/youtube.com/static/js/common.js"></script> + <script src="/youtube.com/static/js/transcript-table.js"></script> {% if settings.use_video_hotkeys %} <script src="/youtube.com/static/js/hotkeys.js"></script> {% endif %} - <script src="/youtube.com/static/js/transcript-table.js"></script> - <script src="/youtube.com/static/js/comments.js"></script> + {% if settings.use_comments_js %} + <script src="/youtube.com/static/js/comments.js"></script> + {% endif %} {% endblock main %} |