mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-11-05 04:02:21 +00:00
Try default favicon extension
This commit is contained in:
1 parent
c62223815b
commit
7442eefbd0
1 file changed
+6
@@ -4856,6 +4856,12 @@ class PubServer(BaseHTTPRequestHandler):
|
||||
faviconFilename = \
|
||||
baseDir + '/theme/' + self.server.themeName + \
|
||||
'/icons/' + favFilename
|
||||
if not favFilename.endswith('.ico'):
|
||||
if not os.path.isfile(faviconFilename):
|
||||
if favFilename.endswith('.webp'):
|
||||
favFilename = favFilename.replace('.webp', '.ico')
|
||||
elif favFilename.endswith('.avif'):
|
||||
favFilename = favFilename.replace('.avif', '.ico')
|
||||
if not os.path.isfile(faviconFilename):
|
||||
# default favicon
|
||||
faviconFilename = \
|
||||
|
||||
Reference in new issue
Block a user