summaryrefslogtreecommitdiffstats
path: root/js/service/OPMLParser.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/service/OPMLParser.js')
-rw-r--r--js/service/OPMLParser.js5
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 = {