mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-25 06:20:59 +02:00
fix: add missing KaTeX fonts
This commit is contained in:
@@ -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(".");
|
||||
|
||||
Reference in New Issue
Block a user