From 24ad131221d8cb0becf726e0570f53838262edf1 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 8 May 2021 16:27:25 +0200 Subject: Rename StaticUrlPrefix to AssetUrlPrefix (#15779) Use a new name for this template/frontend variable to make it distinct from the server variable StaticURLPrefix. --- web_src/js/features/emoji.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web_src/js/features/emoji.js') diff --git a/web_src/js/features/emoji.js b/web_src/js/features/emoji.js index 0da61c4d56..7a522b95fc 100644 --- a/web_src/js/features/emoji.js +++ b/web_src/js/features/emoji.js @@ -1,6 +1,6 @@ import emojis from '../../../assets/emoji.json'; -const {StaticUrlPrefix} = window.config; +const {AssetUrlPrefix} = window.config; const tempMap = {gitea: ':gitea:'}; for (const {emoji, aliases} of emojis) { @@ -24,7 +24,7 @@ for (const key of emojiKeys) { export function emojiHTML(name) { let inner; if (name === 'gitea') { - inner = `:${name}:`; + inner = `:${name}:`; } else { inner = emojiString(name); } -- cgit v1.2.3