summaryrefslogtreecommitdiffstats
path: root/web_src/js/utils.js
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2020-02-18 00:07:58 -0600
committerGitHub <noreply@github.com>2020-02-18 08:07:57 +0200
commitd3f618362a5052954d8b02e9acfee30f022a5c36 (patch)
tree2a81a484d8a7ec03c0df0467876b261d1506aa7a /web_src/js/utils.js
parent83801663ce0ffe3aa06d54ba2317bc50df3b0870 (diff)
downloadgitea-d3f618362a5052954d8b02e9acfee30f022a5c36.tar.gz
gitea-d3f618362a5052954d8b02e9acfee30f022a5c36.zip
Fix JS and Vue (#10328)
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'web_src/js/utils.js')
-rw-r--r--web_src/js/utils.js4
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>`;
}