Retain path structure for loading paths (#845)

* update retain dir structure logic to use emscripten FS APIs

* remove unused import

* replace error message
This commit is contained in:
Madhur Tandon
2022-10-27 20:08:58 +05:30
committed by GitHub
parent bf4d835948
commit ab085c2d92
4 changed files with 38 additions and 7 deletions

View File

@@ -10,10 +10,6 @@ export function removeClasses(element: HTMLElement, classes: string[]) {
}
}
export function getLastPath(str: string): string {
return str.split('\\').pop().split('/').pop();
}
export function escape(str: string): string {
return str.replace(/</g, "&lt;").replace(/>/g, "&gt;")
}