diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2019-02-24 11:40:29 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2019-03-05 11:35:14 +0100 |
commit | 6a4e56e7274d85bcbd0e2dcde7a61d8f7a4397ec (patch) | |
tree | 5bafad374708f5542081592456869f6fa1226f86 /js/service/OPMLParser.js | |
parent | 45474dc86232897199382327527c7de80ec99c1c (diff) |
Cleanup JS and prolong error notification
Diffstat (limited to 'js/service/OPMLParser.js')
-rw-r--r-- | js/service/OPMLParser.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/service/OPMLParser.js b/js/service/OPMLParser.js index 4de08c42f..6752e1d1e 100644 --- a/js/service/OPMLParser.js +++ b/js/service/OPMLParser.js @@ -43,7 +43,6 @@ app.service('OPMLParser', function () { if (entry.type === 'feed') { root.feeds.push(entry); } else { - // only first level should append folders if (firstLevel) { recursivelyParse(outline.children('outline'), entry, false); @@ -57,8 +56,8 @@ app.service('OPMLParser', function () { return root; }; - this.parse = function (xml) { - xml = $.parseXML(xml); + this.parse = function (fileContent) { + var xml = $.parseXML(fileContent); var firstLevel = $(xml).find('body > outline'); var root = { |