good state

This commit is contained in:
Fabian Freund
2025-03-07 20:35:35 +01:00
parent 70d1c1b50e
commit 25c9faa3ff
50 changed files with 993 additions and 439 deletions
@@ -7,7 +7,8 @@ console.log('Background script started')
const store = new Store()
interface Message {
action: 'setProxyPort' | 'addContainerProxy' | 'removeContainerProxy';
id: String | undefined;
action: 'setProxyPort' | 'addContainerProxy' | 'removeContainerProxy' | 'healthcheck';
args: any;
}
@@ -35,8 +36,14 @@ port.onMessage.addListener((raw: unknown): void => {
case "removeContainerProxy":
store.removeContainerProxyRelation(message.args, "tor")
break
case "healthcheck":
port.postMessage({
"type": "healthcheck",
"id": message.id,
"status": "success",
"result": true
});
break
}
});