diff options
Diffstat (limited to 'web_src/js/utils.js')
-rw-r--r-- | web_src/js/utils.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web_src/js/utils.js b/web_src/js/utils.js index 2effddd685..b000c1af77 100644 --- a/web_src/js/utils.js +++ b/web_src/js/utils.js @@ -1,5 +1,3 @@ -const { StaticUrlPrefix } = window.config; - export function svg(name, size) { - return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="${StaticUrlPrefix}/img/svg/icons.svg#${name}"/></svg>`; + return `<svg class="svg ${name}" width="${size}" height="${size}" aria-hidden="true"><use xlink:href="#${name}"/></svg>`; } |