mirror of https://gitlab.com/bashrc2/epicyon
Try default favicon extension
parent
c62223815b
commit
7442eefbd0
|
@ -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 = \
|
||||
|
|
Loading…
Reference in New Issue