mirror of https://github.com/zulip/zulip.git
Serve custom fonts to OS X desktop clients
Previously we added code which prevented us from serving custom fonts to Humbug Desktop user agents due to concerns QtWebKit bugs with @font-face. On OS X, we use the system WebKit so we don't have this bug. In fact, the aformentioned change caused us to have no custom fonts at all on Mac systems! Here we fix this by resuming the serving of such fonts to Macs. (imported from commit b222e9dd721914d17aed8341244cfb5c71149a12)
This commit is contained in:
parent
d284c92ea0
commit
490020b441
|
@ -595,7 +595,7 @@ def is_buggy_ua(agent):
|
||||||
This may get fixed in the future, but for right now we can
|
This may get fixed in the future, but for right now we can
|
||||||
just serve the more conservative CSS to all our desktop apps.
|
just serve the more conservative CSS to all our desktop apps.
|
||||||
"""
|
"""
|
||||||
return "Humbug Desktop/" in agent
|
return "Humbug Desktop/" in agent and not "Macintosh" in agent
|
||||||
|
|
||||||
def get_pointer_backend(request, user_profile):
|
def get_pointer_backend(request, user_profile):
|
||||||
return json_success({'pointer': user_profile.pointer})
|
return json_success({'pointer': user_profile.pointer})
|
||||||
|
|
Loading…
Reference in New Issue