MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / isRemoteWorkspaceActive

Function isRemoteWorkspaceActive

apps/desktop/src/main/index.ts:1774–1778  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1772}
1773
1774function isRemoteWorkspaceActive(): boolean {
1775 const win = currentIpcWindow()
1776 if (win && !windowVaults.isRemoteWindow(win.id)) return false
1777 return remoteWorkspaceClient != null && (win ? true : currentWorkspaceMode === 'remote')
1778}
1779
1780function requireRemoteWorkspaceClient(): RemoteServerClient {
1781 if (!isRemoteWorkspaceActive() || !remoteWorkspaceClient) {

Callers 4

exportNotePdfFunction · 0.85
registerIpcFunction · 0.85
ensureLocalForDatabasesFunction · 0.85

Calls 2

currentIpcWindowFunction · 0.85
isRemoteWindowMethod · 0.80

Tested by

no test coverage detected