Skip to content
Browse files

Merge pull request #15 from jdhuntington/master

Fix for issue #14
  • Loading branch information...
2 parents 61afe92 + bf56c69 commit ec7d1dcb95c2d9f18b2ff6c7750e91c549d9f3c4 @tommoor committed Mar 9, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 tinycon.js
View
3 tinycon.js
@@ -59,7 +59,8 @@
var head = document.getElementsByTagName('head')[0];
for(var i=0, len=links.length; i < len; i++) {
- if (links[i].getAttribute('rel') === 'icon') {
+ var exists = (typeof(links[i]) !== 'undefined');
+ if (exists && links[i].getAttribute('rel') === 'icon') {
head.removeChild(links[i]);
}
}

0 comments on commit ec7d1dc

Please sign in to comment.
Something went wrong with that request. Please try again.