0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-02 04:47:17 +01:00

Update web_src/js/components/ViewFileTreeStore.ts

Signed-off-by: silverwind <me@silverwind.io>
This commit is contained in:
silverwind 2025-10-29 13:46:17 +01:00 committed by GitHub
parent 309307afba
commit eda0b30f97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ export function createViewFileTreeStore(props: {repoLink: string, treePath: stri
async loadViewContent(url: string) {
const u = new URL(url, window.origin);
u.searchParams.set('only_content', '1');
u.searchParams.set('only_content', 'true');
const response = await GET(u.href);
const elViewContent = document.querySelector('.repo-view-content');
elViewContent.innerHTML = await response.text();