mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 21:58:00 +01:00
Attempt to make PATH_SEP code work on OS/X. Catch initWithPath(/) exception.
This commit is contained in:
@@ -1102,8 +1102,9 @@ lookup:
|
|||||||
|
|
||||||
IO.PATH_SEP = (function () {
|
IO.PATH_SEP = (function () {
|
||||||
let file = services.create("file");
|
let file = services.create("file");
|
||||||
file.append("foo");
|
let pathsep = "/";
|
||||||
return file.path[0];
|
try { file.initWithPath("/") } catch(e) { pathsep = "\\"; }
|
||||||
|
return pathsep;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user