mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
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:
@@ -595,7 +595,7 @@ def is_buggy_ua(agent):
|
||||
This may get fixed in the future, but for right now we can
|
||||
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):
|
||||
return json_success({'pointer': user_profile.pointer})
|
||||
|
||||
Reference in New Issue
Block a user