diff --git a/preload.js b/preload.js index ad01aa5..f333f98 100644 --- a/preload.js +++ b/preload.js @@ -74,13 +74,13 @@ const Serial = { return board.exit_raw_repl() }, getNavigationPath: (navigation, target) => { - return [navigation, target].filter(p => p).join('/') + return path.posix.join(navigation, target) }, getFullPath: (root, navigation, file) => { - return root + [navigation, file].filter(p => p).join('/') + return path.posix.join(root, navigation, file) }, - getParentPath: (filePath) => { - return filePath.split('/').slice(0, -1).join('/') + getParentPath: (navigation) => { + return path.posix.dirname(navigation) } } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy