diff --git a/common/content/io.js b/common/content/io.js index 130b005b..911db5bd 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -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; })(); /**