Skip to content

Commit 0eefa53

Browse files
committed
Also use the correct path for the emojis in the ACP
1 parent 10ae72f commit 0eefa53

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

extra/update-emoji-picker-element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,10 @@ export function getLocalizationData(localization: string): I18n {
9898
9999
export function getDataSource(locale: string): string {
100100
if (!locales.includes(locale)) {
101-
return \`\${window.WSC_API_URL}emoji/en.json\`;
101+
return \`\${window.WCF_PATH}emoji/en.json\`;
102102
}
103103
104-
return \`\${window.WSC_API_URL}emoji/\${locale}.json\`;
104+
return \`\${window.WCF_PATH}emoji/\${locale}.json\`;
105105
}
106106
`;
107107

ts/WoltLabSuite/Core/Component/EmojiPicker/Localization.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ export function getLocalizationData(localization: string): I18n {
5252

5353
export function getDataSource(locale: string): string {
5454
if (!locales.includes(locale)) {
55-
return `${window.WSC_API_URL}emoji/en.json`;
55+
return `${window.WCF_PATH}emoji/en.json`;
5656
}
5757

58-
return `${window.WSC_API_URL}emoji/${locale}.json`;
58+
return `${window.WCF_PATH}emoji/${locale}.json`;
5959
}

wcfsetup/install/files/js/WoltLabSuite/Core/Component/EmojiPicker/Localization.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)