mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-12-10 03:34:17 +03:00
Fix
This commit is contained in:
parent
814761b807
commit
6b320fd772
|
|
@ -75,7 +75,7 @@ const migrateOldOptions = (oldOptions: OldOrNewOptions): Options => ({
|
|||
export const getOptions = (callback: (options: Options) => void) => {
|
||||
if (options) callback(options);
|
||||
else {
|
||||
chrome.storage.sync.get(
|
||||
chrome.storage.sync.get<OldOrNewOptions>(
|
||||
{
|
||||
useEditor: 0,
|
||||
editor: '',
|
||||
|
|
@ -92,7 +92,7 @@ export const getOptions = (callback: (options: Options) => void) => {
|
|||
showContextMenus: true,
|
||||
},
|
||||
function (items) {
|
||||
options = migrateOldOptions(items as OldOrNewOptions);
|
||||
options = migrateOldOptions(items);
|
||||
callback(options);
|
||||
},
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user