Please add favicon to session.set_env() #378
prghix
started this conversation in
Feature request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
please add the possibility to change the favicon in session.set_env -- the same way, how we change the page title etc.
USE CASE: a lot of users will run many PyWebIO apps.. and the different favicon is to key how to differentiate among them. Especially when you add the page URL to the Android home screen.
Now we have to use this code:
image_url="https://accerun.com/wp-content/uploads/2021/03/512px.png" session.run_js(""" $('#favicon32,#favicon16').remove(); $('head').append('<link rel="icon" type="image/png" href="%s">') """ % image_url)
thanks! :)
Beta Was this translation helpful? Give feedback.
All reactions