Fx60: nsILocalFile -> nsIFile

This commit is contained in:
Dan Stillman 2018-02-24 05:08:54 -05:00
parent 331522b106
commit 186d2b0883
2 changed files with 2 additions and 4 deletions

View file

@ -83,9 +83,7 @@ Zotero.Integration = new function() {
// on OS X, first try /Users/Shared for those who can't put pipes in their home
// directories
var pipe = null;
var sharedDir = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
sharedDir.initWithPath("/Users/Shared");
var sharedDir = Zotero.File.pathToFile('/Users/Shared');
if(sharedDir.exists() && sharedDir.isDirectory()) {
var logname = Components.classes["@mozilla.org/process/environment;1"].

View file

@ -229,7 +229,7 @@ Zotero.IPC = new function() {
if(pipeDir.exists()) {
var dirEntries = pipeDir.directoryEntries;
while (dirEntries.hasMoreElements()) {
var pipe = dirEntries.getNext().QueryInterface(Ci.nsILocalFile);
var pipe = dirEntries.getNext().QueryInterface(Ci.nsIFile);
if(pipe.leafName[0] !== "." && (!_instancePipe || !pipe.equals(_instancePipe))) {
pipes.push(pipe);
}