diff --git a/app.rb b/app.rb index 6e1d9c69..a20c0f44 100644 --- a/app.rb +++ b/app.rb @@ -41,10 +41,10 @@ send_file File.join(settings.views, "live.html") end -get "/countdown" do +get "/countdown.html" do content_type :html SecureHeaders.use_secure_headers_override(request, :countdown) - send_file File.join(settings.public_folder, "countdown.html") + send_file File.join(settings.views, "countdown.html") end # This route is useful together with this bookmarklet: diff --git a/public/countdown.html b/views/countdown.html similarity index 97% rename from public/countdown.html rename to views/countdown.html index 7fe9e24d..6057ca7e 100644 --- a/public/countdown.html +++ b/views/countdown.html @@ -29,7 +29,7 @@ } function init() { - // Parse query string, e.g: /countdown?date=2018-09-27T03:30:00Z + // Parse query string, e.g: /countdown.html?date=2018-09-27T03:30:00Z var params = {}; window.location.search.substr(1).split("&").forEach(function(param) { param = param.split("="); diff --git a/views/youtube.atom.erb b/views/youtube.atom.erb index 7e135aa1..f4680e78 100644 --- a/views/youtube.atom.erb +++ b/views/youtube.atom.erb @@ -33,7 +33,7 @@ title += " (scheduled for #{updated.readable(@tz)})" content_extra = <<~EOF

Live broadcast scheduled to start at: #{updated.readable(@tz)}.

- + EOF end end