1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 18:27:57 +01:00

Attempt to make PATH_SEP code work on OS/X. Catch initWithPath(/) exception.

This commit is contained in:
Ted Pavlic
2009-04-02 17:40:37 -04:00
parent e2278c7505
commit 15ff0ace59

View File

@@ -1102,8 +1102,9 @@ lookup:
IO.PATH_SEP = (function () {
let file = services.create("file");
file.append("foo");
return file.path[0];
let pathsep = "/";
try { file.initWithPath("/") } catch(e) { pathsep = "\\"; }
return pathsep;
})();
/**