Fix ReduxDevtools to work in Sizzy

This commit is contained in:
Fran Zekan 2022-06-23 23:40:37 +02:00
parent 4e061f4600
commit 40515ab485

View File

@ -1,7 +1,8 @@
// Mock not supported chrome.* API for Firefox and Electron
window.isElectron =
window.navigator && window.navigator.userAgent.indexOf('Electron') !== -1;
(window.navigator && window.navigator.userAgent.indexOf('Electron') !== -1) ||
(window as any).__sizzy;
const isFirefox = navigator.userAgent.indexOf('Firefox') !== -1;