diff --git a/packages/app/src/App.jsx b/packages/app/src/App.jsx
index c04e1baa..e4ec85a0 100755
--- a/packages/app/src/App.jsx
+++ b/packages/app/src/App.jsx
@@ -160,6 +160,11 @@ class ComtyApp extends React.Component {
defaultLocked: options.defaultLocked ?? false,
componentProps: {
sessionController: this.sessionController,
+ },
+ props: {
+ bodyStyle: {
+ height: "100%",
+ }
}
})
},
@@ -226,15 +231,15 @@ class ComtyApp extends React.Component {
app.eventBus.emit("app.softReload")
},
goAuth: () => {
- return app.setLocation(config.app.authPath ?? "/auth")
+ return app.location.push(config.app.authPath ?? "/auth")
},
goMain: () => {
- return app.setLocation(config.app.mainPath ?? "/home")
+ return app.location.push(config.app.mainPath ?? "/home")
},
goToSettings: (setting_id) => {
app.cores.sound.useUIAudio("navigation.settings")
- return app.setLocation(`/settings`, {
+ return app.location.push(`/settings`, {
query: {
setting: setting_id
}
@@ -250,10 +255,10 @@ class ComtyApp extends React.Component {
username = app.userData.username
}
- return app.setLocation(`/account/${username}`)
+ return app.location.push(`/account/${username}`)
},
goToPost: (post_id) => {
- return app.setLocation(`/post/${post_id}`)
+ return app.location.push(`/post/${post_id}`)
},
},
electron: {
@@ -300,18 +305,6 @@ class ComtyApp extends React.Component {
return await StatusBar.show()
},
},
- openDebugger: () => {
- // create a new dom window
- const win = new DOMWindow({
- id: "debug",
- title: "Debug",
- })
-
- win.createDefaultWindow(loadable(() => import("./debug")), {
- width: 700,
- height: 500,
- })
- },
clearInternalStorage: async () => {
antd.Modal.confirm({
title: "Clear internal storage",
@@ -401,47 +394,6 @@ class ComtyApp extends React.Component {
icon: