mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 12:20:20 +01:00
Encode preloaded uri's
This commit is contained in:
parent
61ba02f505
commit
90f3d99a4d
|
|
@ -46,11 +46,11 @@ const getPublicDirectoryIcons = (directory) => {
|
|||
},
|
||||
} = parse(readFileSync(join(baseDirectory, file)).toString());
|
||||
|
||||
if (icon) icons.push(icon);
|
||||
if (icon) icons.push(encodeURI(icon));
|
||||
|
||||
if (isDesktop) {
|
||||
if (pid === "VideoPlayer") {
|
||||
if (!icons.includes(VLC_SUBICON)) icons.push(VLC_SUBICON);
|
||||
if (!icons.includes(VLC_SUBICON)) icons.push(encodeURI(VLC_SUBICON));
|
||||
if (isYouTubeUrl(url)) {
|
||||
const iconFileName = `/${getYouTubeUrlId(
|
||||
url
|
||||
|
|
@ -59,7 +59,7 @@ const getPublicDirectoryIcons = (directory) => {
|
|||
if (
|
||||
existsSync(join("./public", YT_ICON_CACHE, `${iconFileName}`))
|
||||
) {
|
||||
icons.push(`${YT_ICON_CACHE}${iconFileName}`);
|
||||
icons.push(encodeURI(`${YT_ICON_CACHE}${iconFileName}`));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -71,7 +71,7 @@ const getPublicDirectoryIcons = (directory) => {
|
|||
extname(iconPath) &&
|
||||
existsSync(join("./public", ICON_CACHE, `${iconFileName}`))
|
||||
) {
|
||||
icons.push(`${ICON_CACHE}${iconFileName}`);
|
||||
icons.push(encodeURI(`${ICON_CACHE}${iconFileName}`));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user