0
0
Fork 0

Merge pull request #30 from drfloyd5/bugfix/issue-25-does-not-hide-file-iconr-on-macs

Issue-25 Handle Carriage Returns in Filenames.
This commit is contained in:
Oliver 2024-01-07 11:02:29 -07:00 committed by GitHub
commit 34bdf0b4bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
export function changePathVisibility(path: string, hide: boolean) {
let n = document.querySelector(`[data-path="${path}"]`);
let escapedPath = CSS.escape(path);
let n = document.querySelector(`[data-path="${escapedPath}"]`);
if (!n) {
return;
};