MCPcopy Index your code
hub / github.com/refined-github/refined-github / getLegacyReason

Function getLegacyReason

source/features/status-subscription.tsx:36–38  ·  view source on GitHub ↗
(subscriptionButton: HTMLButtonElement)

Source from the content-addressed store, hash-verified

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

Callers 2

getLegacyStatusFunction · 0.85
addLegacyButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected