You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WolfWalter
changed the title
Ionic 3platform.is('electron') failed for electron 2.0.1
Ionic 4: platform.is('electron') failed for electron 2.0.1
May 23, 2018
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic Info
Run
ionic info
from a terminal/cmd prompt and paste the output below.Describe the Bug
When I tried to use this.platform.is('electron') inside electron with a ionic v4 app the result was negative.
Expected Behavior
Result should be true.
Additional Context
I checked the platform ionic source. https://github.com/ionic-team/ionic/blob/3bb661fa11e027f4cc55bd920d2353485beecff5/core/src/utils/platform.ts#L57 It is checked if the userAgent includes 'electron' but the electron 2.0.1 userAgent electron starts with a capital 'E':
win.navigator.userAgent:
The text was updated successfully, but these errors were encountered: