2 changed files with 2 additions and 4 deletions
@ -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>`; |
||||
} |
||||
|
Loading…
Reference in new issue