Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
commit
03634b1ca3
11340 files changed
+3442369
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { atom } from 'nanostores'
|
||||
|
||||
import type { DesktopConnectionsRegistry } from '@/global'
|
||||
|
||||
/** Null only for the legacy profile-only Desktop topology. Once Electron has
|
||||
* published a registry, profile names are source-local and are not owners. */
|
||||
export const $connectionsRegistry = atom<DesktopConnectionsRegistry | null>(null)
|
||||
|
||||
export function hasRegistryTopology(): boolean {
|
||||
// The bridge exists before its asynchronous cache load. Treat that window
|
||||
// (and a failed list IPC) as registry topology so owner routing fails closed;
|
||||
// only an older Desktop without the registry capability is truly legacy.
|
||||
return $connectionsRegistry.get() !== null || Boolean(window.hermesDesktop?.connections?.list)
|
||||
}
|
||||
Reference in new issue
Block a user