diff --git a/docs/source/_static/js/crowdin.js b/docs/source/_static/js/crowdin.js index c801b663..ac845bd1 100644 --- a/docs/source/_static/js/crowdin.js +++ b/docs/source/_static/js/crowdin.js @@ -1 +1 @@ -window.initCrowdIn('LizardByte-docs', 'sphinx') +globalThis.initCrowdIn('LizardByte-docs', 'sphinx') diff --git a/docs/source/_static/js/projects.js b/docs/source/_static/js/projects.js index 1c29c0e1..0243deac 100644 --- a/docs/source/_static/js/projects.js +++ b/docs/source/_static/js/projects.js @@ -85,7 +85,7 @@ $(document).ready(function() { } // sort the projects by name - let sorted_projects = projects.sort(rankingSorter('name_lower', 'name')).reverse() + let sorted_projects = projects.toSorted(rankingSorter('name_lower', 'name')).reverse() for (let a of [false, true]) { for (let i in sorted_projects) {