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

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