mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
improve default window creation
This commit is contained in:
parent
0b70162a11
commit
5e3a36bc98
@ -74,8 +74,10 @@ class DOMWindow {
|
||||
this.currentRender = null
|
||||
}
|
||||
|
||||
createDefaultWindow = () => {
|
||||
return this.render(<DefaultWindowRender {...this.props} id={this.id} key={this.key} destroy={this.destroy} />)
|
||||
createDefaultWindow = (children, props) => {
|
||||
return this.render(<DefaultWindowRender {...this.props} {...props} id={this.id} key={this.key} destroy={this.destroy} >
|
||||
{children}
|
||||
</DefaultWindowRender>)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user