From e8cdda0faecea119369a2e4faf07f5ebdcaef427 Mon Sep 17 00:00:00 2001 From: Robin Date: Thu, 8 Aug 2019 20:35:43 +0200 Subject: [PATCH] fix(platform): set correct electron regex (#19044) fixes #19043 --- core/src/utils/platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/utils/platform.ts b/core/src/utils/platform.ts index a6c2d7457d..fa971e58d3 100644 --- a/core/src/utils/platform.ts +++ b/core/src/utils/platform.ts @@ -93,7 +93,7 @@ const isCapacitorNative = (win: any): boolean => { }; const isElectron = (win: Window): boolean => - testUserAgent(win, /electron/); + testUserAgent(win, /electron/i); const isPWA = (win: Window): boolean => (win as any).matchMedia ? (win.matchMedia('(display-mode: standalone)').matches || (win.navigator as any).standalone) : false;