Update favicon.blade.php

This commit is contained in:
Julian Prieber 2022-11-29 22:01:49 +01:00
parent d058eb429e
commit 5c4ae7b2dc

View File

@ -2421,6 +2421,9 @@ foreach($dom->find('link') as $e)
{
if (!empty($e->rel) && strtolower(trim($e->rel)) == 'shortcut icon') {
$favicon = $url.'/'.$e->href;
if (substr_count($favicon, 'https://') > 1 || substr_count($favicon, 'http://') > 1) {
$favicon = $e->href;
}
} else {
if (strtolower(trim($e->rel)) == 'icon') {
$favicon = $e->href;