Skip to main content
added 181 characters in body
Source Link
Bryce
  • 442
  • 3
  • 15

I'd like to detect if a lightning component is opened from Chrome browser. I've tried using $A.get('$Browser')but it doesn't provide anything about detecting Chrome. Do you know how i could achieve this? Thanks,

EDIT : It's not about detecting any browser, os or device, it's about detecting when Salesforce1 is actually running on Chrome Mobile Browser or using Web-view specifically.

enter image description here

I'd like to detect if a lightning component is opened from Chrome browser. I've tried using $A.get('$Browser')but it doesn't provide anything about detecting Chrome. Do you know how i could achieve this? Thanks,

enter image description here

I'd like to detect if a lightning component is opened from Chrome browser. I've tried using $A.get('$Browser')but it doesn't provide anything about detecting Chrome. Do you know how i could achieve this? Thanks,

EDIT : It's not about detecting any browser, os or device, it's about detecting when Salesforce1 is actually running on Chrome Mobile Browser or using Web-view specifically.

enter image description here

Source Link
Bryce
  • 442
  • 3
  • 15

Detect if a Lightning component is opened from Chrome

I'd like to detect if a lightning component is opened from Chrome browser. I've tried using $A.get('$Browser')but it doesn't provide anything about detecting Chrome. Do you know how i could achieve this? Thanks,

enter image description here