We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2af846d commit 4539b8bCopy full SHA for 4539b8b
package/linkFiber.js
@@ -65,6 +65,10 @@ module.exports = (snap, mode) => {
65
const { _reactRootContainer: { _internalRoot } } = container;
66
fiberRoot = _internalRoot;
67
updateSnapShotTree();
68
- sendSnapshot();
+
69
+ // send the initial snapshot once the content script has started up
70
+ window.addEventListener('message', ({ data: { action } }) => {
71
+ if (action === 'contentScriptStarted') sendSnapshot();
72
+ });
73
};
74
0 commit comments