Skip to content

Commit c63e11e

Browse files
committed
Serialize the current state of background store when initializing the devpanel
1 parent 598c160 commit c63e11e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/extension/background/messaging.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { onConnect, onMessage, sendToTab } from 'crossmessaging';
2+
import { stringify } from 'circular-json';
23
import parseJSON from '../utils/parseJSON';
34
import syncOptions from '../options/syncOptions';
45
import createMenu from './contextMenus';
@@ -17,7 +18,7 @@ const naMessage = {
1718
onConnect((tabId) => {
1819
if (tabId !== store.id) return naMessage;
1920
return {
20-
payload: window.store.liftedStore.getState(),
21+
payload: stringify(window.store.liftedStore.getState()),
2122
source: 'redux-page'
2223
};
2324
}, {}, connections);

0 commit comments

Comments
 (0)