Move banner text icon from translation file
parent
67c46920fa
commit
76cbfeab06
|
@ -56,7 +56,7 @@
|
||||||
"description": "For an wiki in English. See the bannerText message for more information. Include a leading space when appropriate."
|
"description": "For an wiki in English. See the bannerText message for more information. Include a leading space when appropriate."
|
||||||
},
|
},
|
||||||
"bannerVisit": {
|
"bannerVisit": {
|
||||||
"message": "Visit $destination$ →",
|
"message": "Visit $destination$",
|
||||||
"description": "Text to display in the banner for the visit link",
|
"description": "Text to display in the banner for the visit link",
|
||||||
"placeholders": {
|
"placeholders": {
|
||||||
"destination": {
|
"destination": {
|
||||||
|
|
|
@ -210,7 +210,7 @@ function displayRedirectBanner(newUrl, id, destinationName, destinationLanguage,
|
||||||
bannerWikiLink.classList.add('indie-wiki-banner-link');
|
bannerWikiLink.classList.add('indie-wiki-banner-link');
|
||||||
bannerText.appendChild(bannerWikiLink);
|
bannerText.appendChild(bannerWikiLink);
|
||||||
bannerWikiLink.href = newUrl;
|
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 to insert banner into DOM before body element
|
||||||
function addBannerToDOM() {
|
function addBannerToDOM() {
|
||||||
|
|
Loading…
Reference in New Issue