aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-09 18:55:04 +0200
committerzrose584 <57181548+zrose584@users.noreply.github.com>2020-10-09 18:55:04 +0200
commit6a7d0557e24eb8e1b738ca4bd2eae3eef8371288 (patch)
treedfd0bc21f4006638f9c5e752df5cb583a7a0dbc2
parentfd9bb643f8272ae681e0caeca8803b539b147448 (diff)
downloadyt-local-6a7d0557e24eb8e1b738ca4bd2eae3eef8371288.tar.lz
yt-local-6a7d0557e24eb8e1b738ca4bd2eae3eef8371288.tar.xz
yt-local-6a7d0557e24eb8e1b738ca4bd2eae3eef8371288.zip
jinja: only include 'comments.js' if needed
-rw-r--r--youtube/templates/watch.html6
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 %}