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 bbdbb2d commit 57ca373Copy full SHA for 57ca373
src/extension/contentScript.js
@@ -7,14 +7,12 @@ window.addEventListener('message', msg => {
7
if (msg.data.action !== 'contentScriptStarted' && firstMessage) {
8
// since contentScript is run everytime a page is refreshed
9
// tell the background script that the tab has reloaded
10
- console.log('before sending tabReload');
11
chrome.runtime.sendMessage({ action: 'tabReload' });
12
firstMessage = false;
13
}
14
15
// post initial Message to npm package
16
const { action } = msg.data;
17
- console.log('before sending recordsnap');
18
if (action === 'recordSnap') chrome.runtime.sendMessage(msg.data);
19
});
20
0 commit comments