X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0e9e6e6f8f15e6dbdd208cd741386562e2aceee8..3bbdb004477a21e736f3613788356b12ba7f564f:/app/controllers/application_controller.rb?ds=sidebyside diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 12cdb15d4..97ab5abfc 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -422,6 +422,10 @@ class ApplicationController < ActionController::Base request.body.rewind end + def map_layout + request.xhr? ? false : 'map' + end + def preferred_editor editor = if params[:editor] params[:editor]