mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-03-03 18:58:01 +03:00
fix(extension): polyfill chrome.storage.sync
for Electron (#711)
`chrome.storage.sync` is not supported on Electron (https://www.electronjs.org/docs/api/extensions#chromestorage). Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
parent
9eb1644776
commit
f4b9c4b057
|
@ -87,6 +87,6 @@ if (window.isElectron) {
|
|||
};
|
||||
}
|
||||
|
||||
if (isFirefox) {
|
||||
if (isFirefox || window.isElectron) {
|
||||
chrome.storage.sync = chrome.storage.local;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user