Restore function removed by bad merge #129
@ -8,3 +8,8 @@ export const getCsrfToken = () => {
|
||||
}
|
||||
|
||||
export const getSlug = () => localStorage.getItem('slug') || 'default';
|
||||
|
||||
// From https://stackoverflow.com/a/1026087/3607039
|
||||
export const capitalize = (val:string) => {
|
||||
return String(val).charAt(0).toUpperCase() + String(val).slice(1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user