mirror of https://gitlab.com/bashrc2/epicyon
Check for none
parent
a193639b53
commit
1e5e38d8a8
|
@ -2041,6 +2041,7 @@ def html_common_emoji(base_dir: str, no_of_emoji: int) -> str:
|
||||||
def text_mode_browser(ua_str: str) -> bool:
|
def text_mode_browser(ua_str: str) -> bool:
|
||||||
"""Does the user agent indicate a text mode browser?
|
"""Does the user agent indicate a text mode browser?
|
||||||
"""
|
"""
|
||||||
|
if ua_str:
|
||||||
text_mode_agents = ('Lynx/', 'w3m/', 'Links (', 'Emacs/', 'ELinks')
|
text_mode_agents = ('Lynx/', 'w3m/', 'Links (', 'Emacs/', 'ELinks')
|
||||||
for agent in text_mode_agents:
|
for agent in text_mode_agents:
|
||||||
if agent in ua_str:
|
if agent in ua_str:
|
||||||
|
|
Loading…
Reference in New Issue