blob: 3c3e918c0a8fccccf2377cd262164f9be31fb602 (
plain)
1
2
3
4
5
6
7
|
// eslint-disable-next-line import/prefer-default-export
export const setTitle = (pathMatch, ref, project) => {
const path = pathMatch.replace(/^\//, '');
const isEmpty = path === '';
document.title = `${isEmpty ? 'Files' : path} · ${ref} · ${project}`;
};
|