refactor: use getAuthStatus
This commit is contained in:
parent
a1e39ca7cf
commit
2bd7235929
|
@ -66,7 +66,7 @@ export function handleKernelMessage(event: MessageEvent) {
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.logoutComplete === true) {
|
if (getAuthStatus().logoutComplete) {
|
||||||
console.log("received logout signal, clearing all ports");
|
console.log("received logout signal, clearing all ports");
|
||||||
|
|
||||||
for (let [, port] of Object.entries(getOpenPorts())) {
|
for (let [, port] of Object.entries(getOpenPorts())) {
|
||||||
|
|
Reference in New Issue