Skip to content

Commit

Permalink
Merge a422bd5 into 992a1f7
Browse files Browse the repository at this point in the history
  • Loading branch information
thostetler committed Sep 11, 2017
2 parents 992a1f7 + a422bd5 commit f51467c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/js/widgets/meta_tags/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,17 @@ define([
}

// Update the <head> with the meta tags
$('head').append(metatagsTemplate(data));
$('head').append(function () {
return $(metatagsTemplate(data)).filter(function () {
var name = $(this).attr('name');
if (name) {

// check to see if the tag already exists
return !$('head>meta[name="' + name + '"]').length;
}
return true;
});
});

// Let Zotero know things have updated
var ev = document.createEvent('HTMLEvents');
Expand Down

0 comments on commit f51467c

Please sign in to comment.