()
| 237 | } |
| 238 | |
| 239 | function getTransport(): ApiTransport { |
| 240 | if (IS_ELECTRON && typeof window !== 'undefined' && window.apiServerApi) { |
| 241 | return createElectronTransport() |
| 242 | } |
| 243 | return createWebTransport() |
| 244 | } |
| 245 | |
| 246 | // ==================== Store ==================== |
| 247 |
no test coverage detected