mirror of
https://github.com/DustinBrett/daedalOS.git
synced 2025-12-06 00:20:05 +01:00
Fixed wallpaper change breaking terminal
This commit is contained in:
parent
5a36d991e4
commit
76474ab2c9
|
|
@ -62,7 +62,7 @@ const useWallpaper = (
|
|||
const loadWallpaper = useCallback(() => {
|
||||
if (desktopRef.current) {
|
||||
desktopRef.current.setAttribute("style", "");
|
||||
desktopRef.current.querySelector("canvas")?.remove();
|
||||
desktopRef.current.querySelector(":scope > canvas")?.remove();
|
||||
|
||||
if (
|
||||
typeof window.OffscreenCanvas !== "undefined" &&
|
||||
|
|
@ -98,7 +98,8 @@ const useWallpaper = (
|
|||
|
||||
if (currentWallpaperUrl === wallpaperImage) return;
|
||||
if (currentWallpaperUrl) cleanUpBufferUrl(currentWallpaperUrl);
|
||||
desktopRef.current?.querySelector("canvas")?.remove();
|
||||
desktopRef.current?.setAttribute("style", "");
|
||||
desktopRef.current?.querySelector(":scope > canvas")?.remove();
|
||||
if (wallpaperImage === "VANTA") vantaWaves(config)();
|
||||
|
||||
let wallpaperUrl = "";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user