mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix problem with mcp plugin theme
This commit is contained in:
parent
6ca34908d8
commit
623608799a
@ -1,7 +1,7 @@
|
|||||||
import "./style.css";
|
import "./style.css";
|
||||||
|
|
||||||
// get the current theme from the URL
|
// 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";
|
document.body.dataset.theme = searchParams.get("theme") ?? "light";
|
||||||
|
|
||||||
// WebSocket connection management
|
// WebSocket connection management
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user