mirror of
https://github.com/penpot/penpot.git
synced 2026-03-31 00:29:37 +02:00
Merge pull request #8832 from penpot/alotor-fix-mcp-plugin-themne
🐛 Fix problem with mcp plugin theme
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user