Skip to content

Commit 3a878f5

Browse files
authored
Remove functionality from set custom CSS block (#576)
1 parent 31cf809 commit 3a878f5

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

static/extensions/LordCat0/ProjectInterfaces.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@
322322
defaultValue: "background-color: red",
323323
},
324324
},
325+
hideFromPalette: true
325326
},
326327
{
327328
opcode: "HtmlElement",
@@ -906,17 +907,7 @@
906907
element.style.backgroundColor = args.color;
907908
}
908909
CustomCSS (args) {
909-
if (!elements[args.id]) {
910-
return;
911-
}
912-
let style = document.getElementById(`LCGuiStyle_${args.id}`);
913-
let lines = args.css.split(";");
914-
if (!style) {
915-
style = document.createElement("style");
916-
style.id = `LCGuiStyle_${args.id}`;
917-
document.head.append(style);
918-
}
919-
style.textContent = `[data-id='${args.id}']{\n${lines.join(" !important;\n") + " !important"}\n}`;
910+
// Legacy block that is now non-functional
920911
}
921912
HtmlElement (args) {
922913
if (elements[args.id]) return;

0 commit comments

Comments
 (0)