Skip to content

Commit edc331b

Browse files
committed
Further code clean up
1 parent 5f44ce9 commit edc331b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/extension/background.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ chrome.runtime.onConnect.addListener(port => {
6868
if (Object.keys(tabsObj).length > 0) {
6969
port.postMessage({
7070
action: 'initialConnectSnapshots',
71-
payload: { ...tabsObj, msg: 'connection to devgools made' },
71+
payload: tabsObj,
7272
});
7373
}
7474

@@ -164,7 +164,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
164164
// send a message to devtools
165165
portsArr.forEach(bg => bg.postMessage({
166166
action: 'initialConnectSnapshots',
167-
payload: { ...tabsObj, msg: 'reload' },
167+
payload: tabsObj,
168168
}));
169169
}
170170

@@ -186,7 +186,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
186186
if (portsArr.length > 0) {
187187
portsArr.forEach(bg => bg.postMessage({
188188
action: 'initialConnectSnapshots',
189-
payload: {...tabsObj, msg: 'firstsnapshotreceived'},
189+
payload: tabsObj,
190190
}));
191191
}
192192
break;

0 commit comments

Comments
 (0)