mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use controllers depending if is mobile
This commit is contained in:
parent
0df0a1a76c
commit
509d7b3dc2
@ -310,7 +310,14 @@ class App extends React.Component {
|
||||
window.app.ModalController.open((props) => <Creator {...props} />)
|
||||
},
|
||||
openSettings: (goTo) => {
|
||||
window.app.SidedrawerController.open("Settings", Settings, {
|
||||
const controller = window.isMobile ? app.DrawerController : app.SidedrawerController
|
||||
|
||||
if (!controller) {
|
||||
console.error("No controller found")
|
||||
return false
|
||||
}
|
||||
|
||||
controller.open("Settings", Settings, {
|
||||
props: {
|
||||
width: "fit-content",
|
||||
goTo,
|
||||
|
Loading…
x
Reference in New Issue
Block a user