Skip to content

Using path.posix instead of string manipulation #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 28, 2023

Conversation

murilopolese
Copy link
Contributor

Improvement proposed by @kittaakos

preload.js Outdated
},
getFullPath: (root, navigation, file) => {
return root + [navigation, file].filter(p => p).join('/')
return path.posix.join('/', navigation, file)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'/' should be root?

Copy link
Collaborator

@ubidefeo ubidefeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@murilopolese murilopolese merged commit 13969a1 into main Jun 28, 2023
@per1234 per1234 deleted the chore/refactor-get-path branch June 28, 2023 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants