bunch of misc changes

This commit is contained in:
Sriram Hariharan
2023-11-17 11:11:01 -06:00
parent 52431747ee
commit 56643f9753
11 changed files with 51 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
import io from 'socket.io-client';
import { bMessenger } from 'src/shared/messages';
import { background } from 'src/shared/messages';
const socket = io('http://localhost:9090');
let reBuilding = false;
@@ -27,7 +27,7 @@ socket.on('reload', async () => {
console.log('%c[hot-reloading] reloading...', 'color:white; background-color: orange;');
chrome.tabs.query({ active: true, currentWindow: true }, tabs => {
if (tabs?.[0]?.id) {
bMessenger.reloadExtension();
background.reloadExtension();
}
});
});