Take path or nsIFile in Zotero.File.pathToFileURI()
This commit is contained in:
parent
41dd75af8a
commit
7f748b2620
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@ Zotero.File = new function(){
|
|||
}
|
||||
|
||||
|
||||
this.pathToFileURI = function (path) {
|
||||
var file = new FileUtils.File(path);
|
||||
this.pathToFileURI = function (pathOrFile) {
|
||||
var file = this.pathToFile(pathOrFile);
|
||||
return Services.io.newFileURI(file).spec;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue