Make it boolean

This commit is contained in:
Fran Zekan 2022-06-23 23:41:56 +02:00
parent 40515ab485
commit f42922e28e

View File

@ -2,7 +2,7 @@
window.isElectron =
(window.navigator && window.navigator.userAgent.indexOf('Electron') !== -1) ||
(window as any).__sizzy;
!!(window as any).__sizzy;
const isFirefox = navigator.userAgent.indexOf('Firefox') !== -1;