fix build issue

This commit is contained in:
Ren Amamiya
2023-09-04 07:44:57 +07:00
parent 21ea8309c7
commit 5d45027776
10 changed files with 91 additions and 99 deletions

View File

@@ -49,11 +49,9 @@ export function SplashScreen() {
};
useEffect(() => {
if (!db.account) {
invoke('close_splashscreen');
}
if (ndk) {
if (!db.account) invoke('close_splashscreen');
if (ndk && db.account) {
console.log('prefetching...');
prefetch();
}

View File

@@ -17,7 +17,6 @@ export function Frame({
const platformStyles = useCallback(() => {
switch (db.platform) {
case 'darwin':
case 'win32':
if (lighter) return 'bg-black/80';
return 'bg-black/90';
default: