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
|
|
@ -141,3 +141,7 @@ function trimRepoTitleName() {
|
||||||
const trimmedName = truncateMiddle(repoName, symbolsCnt);
|
const trimmedName = truncateMiddle(repoName, symbolsCnt);
|
||||||
$repoNameTitle.text(arr[0] + ": " + trimmedName);
|
$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