Merge pull request #18 from DrJKL/showImageOnMenu

Safe node removal in ShowImageOnMenu
This commit is contained in:
pythongosssss
2023-07-27 10:29:47 +01:00
committed by GitHub
+3 -1
View File
@@ -70,7 +70,9 @@ const ext = {
enabled = value;
if (!value) {
app.ui.menuContainer.style.removeProperty("padding-bottom");
app.ui.menuContainer.removeChild(link);
if (link.parentNode) {
link.parentNode.removeChild(link);
}
}
},
});