check user agent and token when webview is loaded
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
class Origami::SurveysController < BaseOrigamiController
|
||||
def new
|
||||
|
||||
@webview = false
|
||||
if check_mobile
|
||||
@webview = true
|
||||
end
|
||||
|
||||
@survey = Survey.new
|
||||
@id = params[:id]
|
||||
@cashier_type = params[:type]
|
||||
|
||||
Reference in New Issue
Block a user