mirror of
https://github.com/reduxjs/redux-devtools.git
synced 2025-07-27 00:19:55 +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 {
|
try {
|
||||||
return fn(args);
|
return fn(args);
|
||||||
} catch (err) {
|
} 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 instanceId = (args as any).instanceId;
|
||||||
const newArgs = {
|
const newArgs = {
|
||||||
split: 'start',
|
split: 'start',
|
||||||
|
|
|
@ -397,7 +397,7 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
toContentScript(
|
toContentScript(
|
||||||
{
|
{
|
||||||
type: 'ERROR',
|
type: 'ERROR',
|
||||||
payload: e.message,
|
payload: (e as Error).message,
|
||||||
source,
|
source,
|
||||||
instanceId,
|
instanceId,
|
||||||
},
|
},
|
||||||
|
@ -417,7 +417,7 @@ function __REDUX_DEVTOOLS_EXTENSION__<S, A extends Action<unknown>>(
|
||||||
toContentScript(
|
toContentScript(
|
||||||
{
|
{
|
||||||
type: 'ERROR',
|
type: 'ERROR',
|
||||||
payload: e.message,
|
payload: (e as Error).message,
|
||||||
source,
|
source,
|
||||||
instanceId,
|
instanceId,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user