fix: add missing KaTeX fonts

This commit is contained in:
tdurieux
2024-04-05 12:02:50 +01:00
parent f30110c567
commit cb3d999ed3
67 changed files with 12 additions and 10 deletions
+5 -3
View File
@@ -1713,9 +1713,11 @@ angular
function updateContent() {
$scope.content = "";
$scope.file = getSelectedFile();
$scope.url =
`/api/repo/${$scope.repoId}/file/${$scope.filePath}?v=` +
$scope.file.sha;
let fileVersion = "0";
if ($scope.file && $scope.file.sha) {
fileVersion = $scope.file.sha;
}
$scope.url = `/api/repo/${$scope.repoId}/file/${$scope.filePath}?v=${fileVersion}`;
let extension = $scope.filePath.toLowerCase();
const extensionIndex = extension.lastIndexOf(".");