1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 00:17:58 +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 () { 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;
})(); })();
/** /**