Move banner text icon from translation file

pull/765/head
Kevin Payravi 2024-07-24 01:53:07 -07:00
parent 67c46920fa
commit 76cbfeab06
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@
"description": "For an wiki in English. See the bannerText message for more information. Include a leading space when appropriate."
},
"bannerVisit": {
"message": "Visit $destination$",
"message": "Visit $destination$",
"description": "Text to display in the banner for the visit link",
"placeholders": {
"destination": {

View File

@ -210,7 +210,7 @@ function displayRedirectBanner(newUrl, id, destinationName, destinationLanguage,
bannerWikiLink.classList.add('indie-wiki-banner-link');
bannerText.appendChild(bannerWikiLink);
bannerWikiLink.href = newUrl;
bannerWikiLink.textContent = extensionAPI.i18n.getMessage('bannerVisit', [destinationName]);
bannerWikiLink.textContent = extensionAPI.i18n.getMessage('bannerVisit', [destinationName]) + ' →';
// Function to insert banner into DOM before body element
function addBannerToDOM() {