mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 18:55:29 -05:00
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:
@@ -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, "<").replace(/>/g, ">")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user