Fix GuLuLu image 404 when install folder casing differs

The GuLuLu gif path was hardcoded as /extensions/kaytool/, but ComfyUI
serves the web directory under the custom_nodes folder name and aiohttp
route matching is case-sensitive. Installs that end up with a KayTool
folder (e.g. via ComfyUI-Manager, whose node list points at the
capitalized repo URL) got a 404 for the gif.

Derive the path from import.meta.url so it resolves correctly whatever
the folder is named.
This commit is contained in:
kk8bit
2026-09-20 17:21:28 +08:00
parent f4c80b0091
commit 894fdcca47
+1 -1
View File
@@ -13,7 +13,7 @@ const KayGuLuLuManager = {
pixelCanvas: null,
pixelCtx: null,
pixelDataCache: null,
imgSrc: "/extensions/kaytool/resources/GuLuLu.gif",
imgSrc: new URL("./resources/GuLuLu.gif", import.meta.url).pathname,
effectiveBounds: null,
isAnimating: false,
animationTimer: null,