Merge pull request #496 from vincentbernat/fix/feedlink-append

embed: fix feed link creation on older browsers
This commit is contained in:
Jelmer Vernooij 2018-11-10 18:22:39 +00:00 committed by GitHub
commit e6132580a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ require(["app/lib/ready", "app/config", "app/i18n", "app/api", "app/isso", "app/
var feedLink = $.new('a', i18n.translate('atom-feed')); var feedLink = $.new('a', i18n.translate('atom-feed'));
var feedLinkWrapper = $.new('span.isso-feedlink'); var feedLinkWrapper = $.new('span.isso-feedlink');
feedLink.href = api.feed(isso_thread.getAttribute("data-isso-id")); feedLink.href = api.feed(isso_thread.getAttribute("data-isso-id"));
feedLinkWrapper.append(feedLink); feedLinkWrapper.appendChild(feedLink);
isso_thread.append(feedLinkWrapper); isso_thread.append(feedLinkWrapper);
} }
isso_thread.append(heading); isso_thread.append(heading);