Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

Commit

Permalink
Use querySelectorAll
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis committed Sep 9, 2015
1 parent 5fab789 commit eb00527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/logo-swap-close.html
Expand Up @@ -132,7 +132,7 @@
overlay.classList.remove('block-snippet-overlay-glow-{{ snippet_id }}');
});
snippet.addEventListener('click', function () {
var links = snippet.getElementsByTagName('a');
var links = snippet.querySelectorAll('a');
if (links.length) {
links[0].click();
}
Expand Down

0 comments on commit eb00527

Please sign in to comment.