Add frappe cmd to request headers in website for analytics
This commit is contained in:
parent
106e4b7d78
commit
ca3609328a
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ $.extend(frappe, {
|
|||
url: "/",
|
||||
data: opts.args,
|
||||
dataType: "json",
|
||||
headers: { "X-Frappe-CSRF-Token": frappe.csrf_token },
|
||||
headers: { "X-Frappe-CSRF-Token": frappe.csrf_token, "X-Frappe-CMD": (opts.args && opts.args.cmd || '') || '' },
|
||||
statusCode: opts.statusCode || {
|
||||
404: function() {
|
||||
frappe.msgprint(__("Not found"));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue