bunch of misc changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user