Fix error on opening inventory

This commit is contained in:
aignatov-bio 2020-01-09 15:32:28 +01:00
parent 54c78cf4d1
commit 8a647ee003

View file

@ -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 %>"
}
</script>