Skip to content

Commit 9a30b44

Browse files
docs: Update JS for global context and sorting method (#560)
1 parent 5189a41 commit 9a30b44

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/source/_static/js/crowdin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
window.initCrowdIn('LizardByte-docs', 'sphinx')
1+
globalThis.initCrowdIn('LizardByte-docs', 'sphinx')

docs/source/_static/js/projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $(document).ready(function() {
8585
}
8686

8787
// sort the projects by name
88-
let sorted_projects = projects.sort(rankingSorter('name_lower', 'name')).reverse()
88+
let sorted_projects = projects.toSorted(rankingSorter('name_lower', 'name')).reverse()
8989

9090
for (let a of [false, true]) {
9191
for (let i in sorted_projects) {

0 commit comments

Comments
 (0)