check user agent and token when webview is loaded

This commit is contained in:
phyusin
2018-04-06 15:36:08 +06:30
parent dac1a58b64
commit a2e4863c9d
22 changed files with 119 additions and 45 deletions

View File

@@ -9,7 +9,6 @@ class Origami::CustomersController < BaseOrigamiController
end
def get_customer
filter = params[:filter]
type = params[:type]
@@ -47,7 +46,11 @@ class Origami::CustomersController < BaseOrigamiController
end
def add_customer
@webview = false
if check_mobile
@webview = true
end
@sale_id = params[:sale_id]
@cashier_type = params[:type]
@page = params[:page]