Fixed some potential scope issues with jQuery and window
This commit is contained in:
parent
144e4a8ab1
commit
b004f0001c
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue