File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import {pathEscapeSegments, pathUnescapeSegments} from '../utils/url.ts';
44import { GET , PUT } from '../modules/fetch.ts' ;
55import ViewFileTree from '../components/ViewFileTree.vue' ;
66
7+ const { appSubUrl} = window . config ;
8+
79async function toggleSidebar ( sidebarEl : HTMLElement , shouldShow : boolean ) {
810 const showBtnEl = sidebarEl . parentElement . querySelector ( '.show-tree-sidebar-button' ) ;
911 const containerClassList = sidebarEl . parentElement . classList ;
@@ -17,7 +19,7 @@ async function toggleSidebar(sidebarEl: HTMLElement, shouldShow: boolean) {
1719 if ( ! sidebarEl . hasAttribute ( 'data-is-signed' ) ) return ;
1820
1921 // save to session
20- await PUT ( ' /repo/preferences' , {
22+ await PUT ( ` ${ appSubUrl } /repo/preferences` , {
2123 data : {
2224 show_file_view_tree_sidebar : shouldShow ,
2325 } ,
You can’t perform that action at this time.
0 commit comments