Fix OPML import (regression from 5.0.78)

This commit is contained in:
Dan Stillman 2020-03-09 22:46:03 -04:00
parent 2acec4184a
commit b0de59fe89

View file

@ -914,7 +914,7 @@ var ZoteroPane = new function()
fp.appendFilter(Zotero.getString('fileInterface.OPMLFeedFilter'), '*.opml; *.xml');
fp.appendFilters(fp.filterAll);
if (await fp.show() == fp.returnOK) {
var contents = await Zotero.File.getContentsAsync(fp.file.path);
var contents = await Zotero.File.getContentsAsync(fp.file);
var success = await Zotero.Feeds.importFromOPML(contents);
if (success) {
return true;