Skip to content
Permalink
Browse files

fix(platform): set correct electron regex (#19044)

fixes #19043
  • Loading branch information...
robingenz authored and manucorporat committed Aug 8, 2019
1 parent 1187dc2 commit e8cdda0faecea119369a2e4faf07f5ebdcaef427
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit e8cdda0

Please sign in to comment.
You can’t perform that action at this time.