mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-21 19:13:03 +00:00
Merge pull request #78 from ItsVipra/77-profile-type-error
Fix type error in Mastodon v4.3+
This commit is contained in:
commit
a9e740014f
3 changed files with 9 additions and 3 deletions
|
@ -89,7 +89,10 @@ function main() {
|
|||
hasClasses(
|
||||
n,
|
||||
"detailed-status",
|
||||
"status",
|
||||
"status-public",
|
||||
"status-unlisted",
|
||||
"status-private",
|
||||
"status-direct",
|
||||
"conversation",
|
||||
"account-authorize",
|
||||
"notification",
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"manifest_version": 2,
|
||||
"name": "ProToots",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
|
||||
"icons": {
|
||||
"48": "icons/icon small_size/icon small_size.png",
|
||||
|
|
Loading…
Reference in a new issue