DOM tweaking to identify custom categories

This is purely a DOM update to be able to identify the custom category a given custom image modifier is part of, e.g. using .closest() from a custom modifier plugin. No UI change.
This commit is contained in:
patriceac 2023-02-24 01:16:14 -08:00 committed by GitHub
parent 45a2c9f7ef
commit a6f94959fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,6 +115,7 @@ function createModifierGroup(modifierGroup, initiallyExpanded, removeBy) {
modifiersEl.appendChild(brk) modifiersEl.appendChild(brk)
let e = document.createElement('div') let e = document.createElement('div')
e.className = 'custom-modifier-category'
e.appendChild(titleEl) e.appendChild(titleEl)
e.appendChild(modifiersEl) e.appendChild(modifiersEl)