changeset 30748267c262 in www.tryton.org:default
details: https://hg.tryton.org/www.tryton.org?cmd=changeset&node=30748267c262
description:
        Do not use CDN for icons SVG

        Browsers may apply the same-origin policy on use elements.
diffstat:

 templates/utils.html |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (10 lines):

diff -r a263619d6dcd -r 30748267c262 templates/utils.html
--- a/templates/utils.html      Sat Apr 30 10:43:14 2022 +0200
+++ b/templates/utils.html      Sat Apr 30 11:06:45 2022 +0200
@@ -55,5 +55,5 @@
 {% endmacro %}
 
 {% macro icon(name, width=16, height=None) %}<svg class="icon" width="{{ width 
}}" height="{{ height or width }}">
-    <use xlink:href="{{ url_for('static', filename='images/icons.svg') }}#{{ 
name }}"></use>
+    <use href="/static/images/icons.svg#{{ name }}"></use>
 </svg>{% endmacro %}

Reply via email to