mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
added app.softReload
event
This commit is contained in:
parent
ba364c717e
commit
7abe3049bd
@ -126,6 +126,12 @@ class App extends React.Component {
|
||||
"app.reload": () => {
|
||||
window.location.reload()
|
||||
},
|
||||
"app.softReload": () => {
|
||||
this.forceUpdate()
|
||||
|
||||
app.eventBus.emit("layout.forceUpdate")
|
||||
app.eventBus.emit("router.forceUpdate")
|
||||
},
|
||||
"app.openSearcher": () => {
|
||||
App.publicMethods.openSearcher()
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user