Fix custom favicons on Chrome.

This commit is contained in:
Mayhem 2011-04-28 22:04:12 +02:00
parent d6ae45eb5d
commit b38ef315fc
2 changed files with 2 additions and 0 deletions

View File

@ -1692,6 +1692,7 @@
favicon = $('link[rel="shortcut icon"]', d.head);
clone = favicon.cloneNode(true);
clone.href = href;
clone.setAttribute('type', 'image/x-icon');
return $.replace(favicon, clone);
}
};

View File

@ -1322,6 +1322,7 @@ Favicon =
favicon = $ 'link[rel="shortcut icon"]', d.head
clone = favicon.cloneNode true
clone.href = href
clone.setAttribute 'type', 'image/x-icon'
$.replace favicon, clone