mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
add favicon to fix a very weird bug
This commit is contained in:
parent
fb1f05d96b
commit
28ca5c3d83
2 changed files with 7 additions and 0 deletions
BIN
static/favicon.ico
Normal file
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 136 KiB |
7
webui.py
7
webui.py
|
@ -546,6 +546,13 @@ def report_bug():
|
|||
def img_bot_generic():
|
||||
return send_file("static/bot_generic.png", mimetype="image/png")
|
||||
|
||||
@app.route("/favicon.ico")
|
||||
def favicon():
|
||||
# so there's a weird bug where one of my firefox installs wants the favicon, and when it can't find it, it requests /
|
||||
# requesting / resets your session['step'] to 1, which breaks all the multi-step things.
|
||||
# so we need to give it a favicon.
|
||||
return send_file("static/favicon.ico")
|
||||
|
||||
def bot_check(bot):
|
||||
# check to ensure bot is owned by user
|
||||
c = mysql.connection.cursor()
|
||||
|
|
Loading…
Reference in a new issue