mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
OAuth authorization page: hide mobile web banner
This is confusing when someone's trying to authorize a third-party app.
This commit is contained in:
@@ -333,7 +333,8 @@ class Reddit(Templated):
|
||||
if getattr(self, "show_newsletterbar", True):
|
||||
self.newsletterbar = NewsletterBar()
|
||||
|
||||
if c.render_style == "compact":
|
||||
if (c.render_style == "compact" and
|
||||
getattr(self, "show_mobilewebredirectbar", True)):
|
||||
self.mobilewebredirectbar = MobileWebRedirectBar()
|
||||
|
||||
show_locationbar &= not c.user.pref_hide_locationbar
|
||||
@@ -1393,6 +1394,8 @@ class RegistrationInfo(Templated):
|
||||
|
||||
|
||||
class OAuth2AuthorizationPage(BoringPage):
|
||||
show_mobilewebredirectbar = False
|
||||
|
||||
def __init__(self, client, redirect_uri, scope, state, duration,
|
||||
response_type):
|
||||
if duration == "permanent":
|
||||
|
||||
Reference in New Issue
Block a user