Xit icon indicating copy to clipboard operation
Xit copied to clipboard

Use favicons for remotes

Open Uncommon opened this issue 2 years ago • 0 comments

Currently, remote icons are hard-coded with explicit exceptions for GitHub, GitLab, and BitBucket. Instead, the site's favicon could be displayed.

  • Do an http HEAD request for the site's root path
  • Look for <link rel="icon"> or other variant
  • If not found, try /favicon.ico
  • Cache the images and refresh periodically

Uncommon avatar May 31 '22 16:05 Uncommon