Shortened GIF guard

This commit is contained in:
Marcin Kurczewski 2015-03-13 21:16:34 +01:00
parent 0aad36228a
commit 2e06422b62

View file

@ -1,5 +1,5 @@
<%
var postContentUrl = '/data/posts/' + post.name + '?x=' + Math.random() /* reset gif animations */
var postContentUrl = '/data/posts/' + post.name + '?' + Math.round(Math.random() * 1000) /* reset gif animations */
var width;
var height;
if (post.contentType === 'image' || post.contentType === 'flash') {