mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 03:23:02 +00:00
do not add proplates on account--minimal
new div around element showing the currently logged in user
This commit is contained in:
parent
6e94b241f1
commit
aafaaee904
1 changed files with 4 additions and 1 deletions
|
@ -51,7 +51,10 @@ export function addTypeAttribute(ActionElement) {
|
|||
} else if (hasClasses(ActionElement, "notification", "notification__message")) {
|
||||
ActionElement.setAttribute("protoots-type", "notification");
|
||||
ActionElement.closest("article").setAttribute("protoots-type", "notification");
|
||||
} else if (hasClasses(ActionElement, "account")) {
|
||||
} else if (
|
||||
hasClasses(ActionElement, "account") &&
|
||||
!hasClasses(ActionElement, "account--minimal")
|
||||
) {
|
||||
ActionElement.setAttribute("protoots-type", "account");
|
||||
ActionElement.closest("article").setAttribute("protoots-type", "account");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue