(rt: RuntimeInput)
| 57 | } |
| 58 | |
| 59 | export function createWidgetRuntime(rt: RuntimeInput): WidgetRuntime { |
| 60 | _runtime = { |
| 61 | serverByIdStore: () => undefined, |
| 62 | subscribeServers: noopSubscribe, |
| 63 | subscribeTheme: noopSubscribe, |
| 64 | ...rt |
| 65 | } |
| 66 | return _runtime |
| 67 | } |
| 68 | |
| 69 | export function getRuntime(): WidgetRuntime { |
| 70 | if (!_runtime) { |
no outgoing calls