fix: [domains explorer] fix empty screenshots

pull/594/head
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
1 changed files with 4 additions and 1 deletions

View File

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