@owdproject/core
Version:
<p align="center"> <img width="160" height="160" src="https://avatars.githubusercontent.com/u/65117737?s=160&v=4" /> </p> <h1 align="center">Open Web Desktop</h1> <h3 align="center"> A modular framework for building web-based desktop experiences. </h3
16 lines (14 loc) • 345 B
text/typescript
// support for controller-less windows
// (for example: dummy windows in docs)
export function handleWindowControllerProps(windowController: any) {
if (windowController.instanced) {
return windowController
}
return {
...windowController,
...windowController.config,
state: {
...windowController.config,
},
}
}