mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 03:22:32 +02:00
Attempt to make PATH_SEP code work on OS/X. Catch initWithPath(/) exception.
This commit is contained in:
1 parent
e2278c7505
commit
15ff0ace59
1 file changed
+3
-2
@@ -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;
|
||||
})();
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user