diff --git a/app/views/repositories/show.html.erb b/app/views/repositories/show.html.erb index 734434913..5415e716e 100644 --- a/app/views/repositories/show.html.erb +++ b/app/views/repositories/show.html.erb @@ -189,5 +189,8 @@ js_format.gsub!(/%B/, 'MMMM') js_format.gsub!('%Y', 'YYYY') %> - const formatJS = "<%= js_format %>" + + if (typeof(formatJS) == undefined) { // Turbolinks fix + const formatJS = "<%= js_format %>" + }