Files

9 lines
295 B
TypeScript
Raw Permalink Normal View History

2026-04-25 16:36:34 +08:00
import { buildRegFnWithEvent } from './buildReg';
/**
*
* @default window.location.origin ()
*/
export const [getServiceUrl, setServiceUrl, onServiceUrlChange] =
buildRegFnWithEvent<() => string>('serverUrl', () => window.location.origin);