mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-19 06:43:45 +02:00
Use easy-peasy to store file state data
This commit is contained in:
@@ -4,10 +4,3 @@ export function bytesToHuman (bytes: number): string {
|
||||
// @ts-ignore
|
||||
return `${(bytes / Math.pow(1000, i)).toFixed(2) * 1} ${['Bytes', 'kB', 'MB', 'GB', 'TB'][i]}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current directory for the given window.
|
||||
*/
|
||||
export function getDirectoryFromHash (): string {
|
||||
return window.location.hash.replace(/^#(\/)+/, '/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user