-
Notifications
You must be signed in to change notification settings - Fork 5
Maintenance, bugfixes, and initial mobile support for WebViews/mobile devices. #1
base: master
Are you sure you want to change the base?
Conversation
@pages = Page.order("name").frontpage | ||
render :layout => 'full_map' | ||
# Is this coming from an Android WebView? | ||
if request.headers['X-Requested-With'] or params[:mobile] == "1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this logic mean that any request with an X-Requested-With header will get redirected to the mobile index?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops. That's not what I intended.
Would detecting the substring "Mobile Safari" in the user agent be a better idea?
Is this change staged anywhere I can preview what a mobile page looks like? |
I'll work on bringing a demo instance up. It's borderless. |
I can't get Dokku to play nice with shuttles at the moment. On my VM, it's the normal map without the borders. |
@bamnet, can you test this on your own Dokku instance? I'm not sure if it's an issue with Dokku or my specific instance of it. |
Use CSS media queries instead of user agent detection.
No description provided.