Fixed some potential scope issues with jQuery and window

This commit is contained in:
Andrii V 2026-01-28 17:33:49 +01:00
parent 144e4a8ab1
commit b004f0001c

View file

@ -141,3 +141,7 @@ function trimRepoTitleName() {
const trimmedName = truncateMiddle(repoName, symbolsCnt);
$repoNameTitle.text(arr[0] + ": " + trimmedName);
}
// Export to global scope for use in templates
window.applyMiddleCut = applyMiddleCut;
window.trimRepoTitleName = trimRepoTitleName;