Skip to content

Commit

Permalink
Use dirent.parentPath instead of deprecated .path (FreeTubeApp#6172)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored and Soham456 committed Dec 5, 2024
1 parent 70ce58e commit 2660a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _scripts/injectAllowedPaths.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ const paths = readdirSync(distDirectory, {
dirent.name !== 'main.js' &&
dirent.name !== 'main.js.LICENSE.txt' &&
// filter out any web build files, in case the dist directory contains a web build
!dirent.path.startsWith(webDirectory)
!dirent.parentPath.startsWith(webDirectory)
})
.map(dirent => {
const joined = join(dirent.path, dirent.name)
const joined = join(dirent.parentPath, dirent.name)
return '/' + relative(distDirectory, joined).replaceAll('\\', '/')
})

Expand Down

0 comments on commit 2660a80

Please sign in to comment.