🎨 Clean code

This commit is contained in:
Daniel 2024-12-09 21:25:12 +08:00
parent 5342f9f492
commit 1ce95ad387
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -344,7 +344,7 @@ const updateMobileTheme = (OSTheme: string) => {
window.webkit.messageHandlers.changeStatusBar.postMessage((backgroundColor || (mode === 0 ? "#fff" : "#1e1e1e")) + " " + mode);
} else if (isInAndroid()) {
window.JSAndroid.changeStatusBarColor(backgroundColor, mode);
} else if ( isInHarmony()) {
} else if (isInHarmony()) {
window.JSHarmony.changeStatusBarColor(backgroundColor, mode);
}
}, 500); // 移动端需要加载完才可以获取到颜色