This repository was archived by the owner on May 10, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,31 +68,28 @@ define(function () {
6868 const links = new Set ( ) ;
6969 links . add ( baseUrl . origin + '/favicon.ico' ) ;
7070
71- linkElements . forEach ( ( link ) => {
72- const favicon = link . getAttribute ( 'href' ) ;
73- if ( ! favicon ) {
71+ linkElements . forEach ( ( linkElement ) => {
72+ const faviconAddress = linkElement . getAttribute ( 'href' ) ;
73+ if ( ! faviconAddress ) {
7474 return ;
7575 }
76- if ( favicon . includes ( 'svg' ) ) {
76+ if ( faviconAddress . includes ( 'svg' ) ) {
7777 return ;
7878 }
79- if ( favicon . startsWith ( 'http' ) ) {
80- links . add ( favicon ) ;
79+ if ( faviconAddress . startsWith ( 'http' ) ) {
80+ return links . add ( faviconAddress ) ;
8181 }
82- if ( favicon . startsWith ( '//' ) ) {
83- links . add ( baseUrl . protocol + favicon ) ;
84- return ;
82+ if ( faviconAddress . startsWith ( '//' ) ) {
83+ return links . add ( baseUrl . protocol + faviconAddress ) ;
8584 }
86- if ( favicon . startsWith ( 'data' ) ) {
87- links . add ( favicon ) ;
88- return ;
85+ if ( faviconAddress . startsWith ( 'data' ) ) {
86+ return links . add ( faviconAddress ) ;
8987 }
90- if ( favicon . startsWith ( '/' ) ) {
91- links . add ( baseUrl . origin + favicon ) ;
92- return ;
88+ if ( faviconAddress . startsWith ( '/' ) ) {
89+ return links . add ( baseUrl . origin + faviconAddress ) ;
9390 }
9491
95- links . add ( baseUrl . origin + '/' + favicon ) ;
92+ links . add ( baseUrl . origin + '/' + faviconAddress ) ;
9693 } ) ;
9794
9895
You can’t perform that action at this time.
0 commit comments