mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-04 21:26:27 +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) {
|
async loadViewContent(url: string) {
|
||||||
const u = new URL(url, window.origin);
|
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 response = await GET(u.href);
|
||||||
const elViewContent = document.querySelector('.repo-view-content');
|
const elViewContent = document.querySelector('.repo-view-content');
|
||||||
elViewContent.innerHTML = await response.text();
|
elViewContent.innerHTML = await response.text();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user