mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-26 07:59:48 +03:00
Fix extension
This commit is contained in:
parent
70a646aedb
commit
b3f8da548c
|
@ -212,7 +212,10 @@ function tryCatch<S, A extends Action<unknown>>(
|
|||
try {
|
||||
return fn(args);
|
||||
} catch (err) {
|
||||
if (err.message === 'Message length exceeded maximum allowed length.') {
|
||||
if (
|
||||
(err as Error).message ===
|
||||
'Message length exceeded maximum allowed length.'
|
||||
) {
|
||||
const instanceId = (args as any).instanceId;
|
||||
const newArgs = {
|
||||
split: 'start',
|
||||
|
|
|
@ -397,7 +397,7 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
|||
toContentScript(
|
||||
{
|
||||
type: 'ERROR',
|
||||
payload: e.message,
|
||||
payload: (e as Error).message,
|
||||
source,
|
||||
instanceId,
|
||||
},
|
||||
|
@ -417,7 +417,7 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
|||
toContentScript(
|
||||
{
|
||||
type: 'ERROR',
|
||||
payload: e.message,
|
||||
payload: (e as Error).message,
|
||||
source,
|
||||
instanceId,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user