From 76cbfeab0686436b1d50a6c8f660c34a6af01393 Mon Sep 17 00:00:00 2001 From: Kevin Payravi Date: Wed, 24 Jul 2024 01:53:07 -0700 Subject: [PATCH] Move banner text icon from translation file --- _locales/en/messages.json | 2 +- scripts/content-banners.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 496e6d9..c82541e 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -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": { diff --git a/scripts/content-banners.js b/scripts/content-banners.js index 68a81ed..fe74035 100644 --- a/scripts/content-banners.js +++ b/scripts/content-banners.js @@ -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() {