mirror of
https://github.com/SECTL/SecScore.git
synced 2026-07-19 21:14:21 +08:00
增强iOS启动时窗口全屏化处理
This commit is contained in:
@@ -108,6 +108,12 @@ function MainContent(): React.JSX.Element {
|
|||||||
if (!api || !isIosDevice) return
|
if (!api || !isIosDevice) return
|
||||||
|
|
||||||
const fitIosWindow = async () => {
|
const fitIosWindow = async () => {
|
||||||
|
try {
|
||||||
|
await api.windowMaximize()
|
||||||
|
} catch {
|
||||||
|
void 0
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await api.windowSetResizable(false)
|
await api.windowSetResizable(false)
|
||||||
} catch {
|
} catch {
|
||||||
|
|||||||
Reference in New Issue
Block a user