(subscriptionButton: HTMLButtonElement)
| 34 | } |
| 35 | |
| 36 | function getLegacyReason(subscriptionButton: HTMLButtonElement): HTMLParagraphElement { |
| 37 | return $('p.reason', closestElement('.thread-subscription-status', subscriptionButton)); |
| 38 | } |
| 39 | |
| 40 | function getLegacyStatus(button: HTMLButtonElement): SubscriptionStatus { |
| 41 | const reason = getLegacyReason(button).textContent; |
no outgoing calls
no test coverage detected