diff --git a/extension/CHANGELOG.md b/extension/CHANGELOG.md index ea2c9671..e3f26bb5 100644 --- a/extension/CHANGELOG.md +++ b/extension/CHANGELOG.md @@ -1,5 +1,11 @@ # remotedev-redux-devtools-extension +## 3.2.4 + +### Patch Changes + +- f1d6158: Fix mocking Chrome API for Electron + ## 3.2.3 ### Patch Changes diff --git a/extension/chrome/manifest.json b/extension/chrome/manifest.json index 384bf524..50f554c1 100644 --- a/extension/chrome/manifest.json +++ b/extension/chrome/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.2.3", + "version": "3.2.4", "name": "Redux DevTools", "description": "Redux DevTools for debugging application's state changes.", "homepage_url": "https://github.com/reduxjs/redux-devtools", diff --git a/extension/edge/manifest.json b/extension/edge/manifest.json index 6c9d6661..8aa5365c 100644 --- a/extension/edge/manifest.json +++ b/extension/edge/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.2.3", + "version": "3.2.4", "name": "Redux DevTools", "description": "Redux DevTools for debugging application's state changes.", "homepage_url": "https://github.com/reduxjs/redux-devtools", diff --git a/extension/firefox/manifest.json b/extension/firefox/manifest.json index b1d32eb9..65ec7fbb 100644 --- a/extension/firefox/manifest.json +++ b/extension/firefox/manifest.json @@ -1,5 +1,5 @@ { - "version": "3.2.3", + "version": "3.2.4", "name": "Redux DevTools", "manifest_version": 3, "description": "Redux Developer Tools for debugging application state changes.", diff --git a/extension/package.json b/extension/package.json index e23ba124..ad3fc23f 100644 --- a/extension/package.json +++ b/extension/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "remotedev-redux-devtools-extension", - "version": "3.2.3", + "version": "3.2.4", "description": "Redux Developer Tools for debugging application state changes.", "homepage": "https://github.com/reduxjs/redux-devtools/tree/master/extension", "license": "MIT", diff --git a/extension/src/app/Actions.tsx b/extension/src/app/Actions.tsx index 216e59af..656bb6d6 100644 --- a/extension/src/app/Actions.tsx +++ b/extension/src/app/Actions.tsx @@ -29,11 +29,7 @@ interface OwnProps { } type Props = StateProps & DispatchProps & OwnProps; -declare global { - interface Window { - isElectron?: boolean; - } -} +const isElectron = navigator.userAgent.includes('Electron'); function sendMessage(message: SingleMessage) { chrome.runtime.sendMessage(message); @@ -98,7 +94,7 @@ class Actions extends Component { )} - {!window.isElectron && ( + {!isElectron && ( )} - {!window.isElectron && ( + {!isElectron && (