mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 16:17:57 +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 () {
|
||||
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