fix: [domains explorer] domain screeenshot

This commit is contained in:
Terrtia 2023-06-02 13:24:40 +02:00
parent 6ed76b2e3b
commit 3e9dd8a702
No known key found for this signature in database
GPG key ID: 1E1B1F50D84613D0
2 changed files with 8 additions and 8 deletions

View file

@ -212,14 +212,15 @@ function img_error(canevas_id) {
blocks.addEventListener('change', pixelate_all, false); blocks.addEventListener('change', pixelate_all, false);
{% for dict_domain in dict_data['list_elem'] %} {% for dict_domain in dict_data['list_elem'] %}
{% if 'screenshot' in dict_domain %}
{% if dict_domain['is_tags_safe'] %} {% if dict_domain['is_tags_safe'] %}
{% 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 %} {% else %}
var screenshot_url = "{{ url_for('static', filename='image/AIL.png') }}"; var screenshot_url = "{{ url_for('static', filename='image/AIL.png') }}";
{% endif %} {% endif %}
init_canevas_blurr_img("canvas_{{loop.index0}}", screenshot_url); init_canevas_blurr_img("canvas_{{loop.index0}}", screenshot_url);
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</script> </script>

View file

@ -104,7 +104,6 @@ function toggle_sidebar(){
} }
</script> </script>
<script> <script>
// img_url // img_url