move desktop mode to user pref

This commit is contained in:
r888888888
2017-12-15 13:52:25 -08:00
parent 4dabbde05d
commit a95af95eae
8 changed files with 25 additions and 34 deletions

View File

@@ -1,6 +1,4 @@
class StaticController < ApplicationController
before_filter :check_desktop_mode, only: :site_map
def terms_of_service
end
@@ -19,15 +17,5 @@ class StaticController < ApplicationController
def site_map
end
private
def check_desktop_mode
if params[:dm]
cookies[:dm] = "1"
redirect_to :back
return false
end
end
end