diff --git a/src/general.ts b/src/general.ts index 84f8c85..94cb41a 100644 --- a/src/general.ts +++ b/src/general.ts @@ -73,7 +73,7 @@ export default async (url: URL.Url): Promise => { const favicon = $('link[rel="shortcut icon"]').attr('href') || $('link[rel="icon"]').attr('href') || - '/favicon.ico' + '/favicon.ico'; const checkExistence = (checkURL: string): Promise => new Promise(done => { request.head(checkURL, (err, res) => { @@ -95,7 +95,7 @@ export default async (url: URL.Url): Promise => { if (isAbsolute) return relativeURLString; // スラッシュを付けて返却 return "/" + relativeURLString; - } + }; const icon = await checkExistence(URL.resolve(url.href, favicon)) || // 相対指定を絶対指定に変換し再試行