Timeline for Detect if a Lightning component is opened from Chrome [duplicate]
Current License: CC BY-SA 4.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 11, 2019 at 12:57 | history | closed |
Vijay Ganji glls Lance Shi Raul battery.cord |
Duplicate of How to detect browser in lightning component for desktop and mobile both | |
Jul 9, 2019 at 14:43 | history | edited | Bryce | CC BY-SA 4.0 |
added 181 characters in body
|
Jul 9, 2019 at 14:38 | comment | added | Bryce |
As i mentionned in my question, i've checked $A.get('$Browser') and indeed it enables to detect Firefox, IE but not Chrome specifically. The only information we have is about isAndroid = true but that is not reliable to deduct if the user is actually using Chrome on Mobile or Desktop.
|
|
Jul 9, 2019 at 10:55 | review | Close votes | |||
Jul 11, 2019 at 12:57 | |||||
Jul 9, 2019 at 10:40 | answer | added | Krishnan Mishra | timeline score: 0 | |
Jul 7, 2019 at 17:44 | comment | added | Dhanik Lal Sahni | Check solution in post salesforce.stackexchange.com/questions/240783/… | |
Jul 7, 2019 at 17:13 | comment | added | Bryce |
Actually my main goal is to provide a different UX from Salesforce1 web view and any mobile browser (IE, Firefox, Chrome). But i've noticed that an isChrome property was not present from lightning global variable $A.get('$Browser')
|
|
Jul 7, 2019 at 17:06 | comment | added | sfdcfox♦ | Why do you need to know if it's Chrome or not? You should be using feature detection to determine if a specific feature is available. For that matter, modernizr should give you all the details you need if you want advanced feature detection. | |
Jul 7, 2019 at 16:42 | history | asked | Bryce | CC BY-SA 4.0 |