[#32] added setup in readme and support to missing applist.js

This commit is contained in:
Camille Moussu
2025-08-19 14:07:37 +02:00
committed by Benoit TELLIER
parent aa498ac91f
commit 290c7f301b
2 changed files with 19 additions and 2 deletions
+2 -1
View File
@@ -15,7 +15,7 @@ export type AppIconProps = {
export function Menubar() {
const user = useAppSelector((state) => state.user.userData);
const applist: AppIconProps[] = (window as any).appList;
const applist: AppIconProps[] = (window as any).appList ?? [];
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
const dispatch = useAppDispatch();
@@ -93,6 +93,7 @@ function AppIcon({ prop }: { prop: AppIconProps }) {
<a
key={prop.name}
href={prop.link}
target="_blank"
style={{ textDecoration: "none", color: "inherit" }}
>
<div>