Skip to content

Commit

Permalink
Fix shared profiles paths on network; Close #24
Browse files Browse the repository at this point in the history
  • Loading branch information
ysard committed Jan 3, 2019
1 parent 20c4911 commit a87b3a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/trayservice.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ function fixPath(path) {
}

// fix path for windows
if (/^\/[A-Z]:\//.test(path)) { // detect if this is broken windows path: '\C:\xxx'
// detect if this is broken windows path: '\C:\xxx'
// or a network path: '\\network\drive\'
if (/^\/[A-Z]:\//.test(path) || /^\/{3}/.test(path)) {
path = path.substring(1, path.length); // remove leading slash
path = path.replace(/\//g, '\\'); // also convert slash to backslash
}
Expand Down

0 comments on commit a87b3a2

Please sign in to comment.