Fx60: Remove instances of nsILocalFile

nsILocalFile was merged into nsIFile, so either replace it with that or
switch to Zotero.File.pathToFile().
This commit is contained in:
Dan Stillman 2019-08-25 06:51:11 -04:00
parent 6f965251ed
commit 433794916a
13 changed files with 36 additions and 57 deletions

View file

@ -612,9 +612,7 @@ ZoteroCommandLineHandler.prototype = {
// Wait to handle things that require the UI until after it's loaded
Zotero.uiReadyPromise
.then(function () {
var file = Components.classes["@mozilla.org/file/local;1"].
createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(param);
var file = Zotero.File.pathToFile(param);
if(file.leafName.substr(-4).toLowerCase() === ".csl"
|| file.leafName.substr(-8).toLowerCase() === ".csl.txt") {