Unable to make a call from Frappe CRM mobile page

I get doc is not defined. Why does this happen?