UI: Automatically show Bitverse UI if BN is finished (#1358)

This commit is contained in:
catloversg
2024-06-09 03:54:44 +07:00
committed by GitHub
parent a354867fc4
commit a0fc9cc713
5 changed files with 83 additions and 57 deletions
+11
View File
@@ -0,0 +1,11 @@
import { GetServer } from "../Server/AllServers";
import { Server } from "../Server/Server";
import { SpecialServers } from "../Server/data/SpecialServers";
export function isBitNodeFinished(): boolean {
const wd = GetServer(SpecialServers.WorldDaemon);
if (!(wd instanceof Server)) {
throw new Error("WorldDaemon is not a normal server. This is a bug. Please contact developers.");
}
return wd.backdoorInstalled;
}