(windowId)
| 9 | |
| 10 | // Turn this into a single op to call from the exported function |
| 11 | function getInitialState(windowId) { |
| 12 | return Promise.all([ |
| 13 | invoke("getWindowState", windowId), |
| 14 | invoke("getGlobalState"), |
| 15 | ]).then(([winState, globalState]) => { |
| 16 | return {...winState, ...globalState} |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | export default async (api: ZuiApi, renderer) => { |
| 21 | const windowId = global.windowId |
no test coverage detected