Merge pull request #8832 from penpot/alotor-fix-mcp-plugin-themne

🐛 Fix problem with mcp plugin theme
This commit is contained in:
Juan de la Cruz 2026-03-30 10:30:39 +02:00 committed by GitHub
commit 932305cbd8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
import "./style.css";
// get the current theme from the URL
const searchParams = new URLSearchParams(window.location.search);
const searchParams = new URLSearchParams(window.location.hash.split("?")[1]);
document.body.dataset.theme = searchParams.get("theme") ?? "light";
// WebSocket connection management