Remove unnecessary translation string

This commit is contained in:
Ajay
2023-09-24 19:01:41 -04:00
parent ee3ce8aa46
commit 3eb853154f
3 changed files with 5 additions and 2 deletions

View File

@@ -415,7 +415,7 @@
</div> </div>
<div data-type="keybind-change" data-sync="skipToHighlightKeybind"> <div data-type="keybind-change" data-sync="skipToHighlightKeybind">
<label class="optionLabel">__MSG_setSkipToHighlightShortcut__:</label> <label class="optionLabel">__MSG_skip_to_category__:</label>
<div class="inline"></div> <div class="inline"></div>
</div> </div>

View File

@@ -85,6 +85,9 @@ async function init() {
}); });
} }
const skipToHighlightKeybind = document.querySelector(`[data-sync="skipToHighlightKeybind"] .optionLabel`) as HTMLElement;
skipToHighlightKeybind.innerText = `${chrome.i18n.getMessage("skip_to_category").replace("{0}", chrome.i18n.getMessage("category_poi_highlight")).replace("?", "")}:`;
// Set all of the toggle options to the correct option // Set all of the toggle options to the correct option
const optionsContainer = document.getElementById("options"); const optionsContainer = document.getElementById("options");
const optionsElements = optionsContainer.querySelectorAll("*"); const optionsElements = optionsContainer.querySelectorAll("*");