Add simple form of cache busting

This commit is contained in:
Omar Roth
2019-05-08 08:58:10 -05:00
parent 59cbf95c4f
commit 4616f889fd
8 changed files with 60 additions and 60 deletions

View File

@@ -33,12 +33,12 @@ var video_data = {
length_seconds: '<%= video.info["length_seconds"].to_f %>',
play_next: <%= !rvs.empty? && !plid && params.continue %>,
next_video: '<%= rvs.select { |rv| rv["id"]? }[0]?.try &.["id"] %>',
youtube_comments_text: '<%= translate(locale, "View YouTube comments") %>',
reddit_comments_text: '<%= translate(locale, "View Reddit comments") %>',
reddit_permalink_text: '<%= translate(locale, "View more comments on Reddit") %>',
comments_text: '<%= translate(locale, "View `x` comments", "{commentCount}") %>',
hide_replies_text: '<%= translate(locale, "Hide replies") %>',
show_replies_text: '<%= translate(locale, "Show replies") %>',
youtube_comments_text: '<%= HTML.escape(translate(locale, "View YouTube comments")) %>',
reddit_comments_text: '<%= HTML.escape(translate(locale, "View Reddit comments")) %>',
reddit_permalink_text: '<%= HTML.escape(translate(locale, "View more comments on Reddit")) %>',
comments_text: '<%= HTML.escape(translate(locale, "View `x` comments", "{commentCount}")) %>',
hide_replies_text: '<%= HTML.escape(translate(locale, "Hide replies")) %>',
show_replies_text: '<%= HTML.escape(translate(locale, "Show replies")) %>',
params: <%= params.to_json %>,
preferences: <%= preferences.to_json %>
}
@@ -242,4 +242,4 @@ var video_data = {
</div>
<% end %>
</div>
<script src="/js/watch.js"></script>
<script src="/js/watch.js?v=<%= CURRENT_COMMIT %>"></script>