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:
parent
309307afba
commit
eda0b30f97
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user