mirror of
https://github.com/ItsVipra/ProToots
synced 2024-11-22 03:23:02 +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(
|
hasClasses(
|
||||||
n,
|
n,
|
||||||
"detailed-status",
|
"detailed-status",
|
||||||
"status",
|
"status-public",
|
||||||
|
"status-unlisted",
|
||||||
|
"status-private",
|
||||||
|
"status-direct",
|
||||||
"conversation",
|
"conversation",
|
||||||
"account-authorize",
|
"account-authorize",
|
||||||
"notification",
|
"notification",
|
||||||
|
|
|
@ -51,7 +51,10 @@ export function addTypeAttribute(ActionElement) {
|
||||||
} else if (hasClasses(ActionElement, "notification", "notification__message")) {
|
} else if (hasClasses(ActionElement, "notification", "notification__message")) {
|
||||||
ActionElement.setAttribute("protoots-type", "notification");
|
ActionElement.setAttribute("protoots-type", "notification");
|
||||||
ActionElement.closest("article").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.setAttribute("protoots-type", "account");
|
||||||
ActionElement.closest("article").setAttribute("protoots-type", "account");
|
ActionElement.closest("article").setAttribute("protoots-type", "account");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ProToots",
|
"name": "ProToots",
|
||||||
"version": "1.2.2",
|
"version": "1.2.3",
|
||||||
|
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "icons/icon small_size/icon small_size.png",
|
"48": "icons/icon small_size/icon small_size.png",
|
||||||
|
|
Loading…
Reference in a new issue