- gitlist.git
- src
- browser
- js
- global
- path.js
This file ( 444B ) exceeds the allowed full mode (48 kb) size.
The editor full hight is disabled, only scrolling is allowed..
If you wish to edit a file, it is recommended to use the scroll mode as some users do not like the full height
mode, although some users like it.
window.gitlist.getPaths = () => {
const currentUrl = new URL(window.location)
if (window.gitlist.basepath !== '') {
currentUrl.pathname = currentUrl.pathname.substring(window.gitlist.basepath.length)
}
let paths = currentUrl.pathname.split('/');
return paths;
}
window.gitlist.getPath = () => {
let paths = window.gitlist.getPaths();
paths = paths.slice(4);
let path = paths.join('/')
return path
}