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:
parent
6f965251ed
commit
433794916a
13 changed files with 36 additions and 57 deletions
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue