fix: [domains explorer] fix empty screenshots

This commit is contained in:
Terrtia 2023-06-02 11:57:05 +02:00
parent e7eceab2b3
commit 6ed76b2e3b
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0

View file

@ -175,9 +175,12 @@ blocks.addEventListener('change', pixelate_all, false);
{% if dict_domain['is_tags_safe'] %}
{% if 'screenshot' in dict_domain %}
var screenshot_url = "{{ url_for('objects_item.screenshot', filename="") }}{{dict_domain['screenshot']}}";
init_canevas_blurr_img("canvas_{{loop.index0}}", screenshot_url);
{% else %}
var screenshot_url = "{{ url_for('static', filename='image/AIL.png') }}";
{% endif %}
init_canevas_blurr_img("canvas_{{loop.index0}}", screenshot_url);
{% endif %}
{% endfor %}
</script>