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

Function updateUi

source/features/prevent-link-loss.tsx:80–86  ·  view source on GitHub ↗
({delegateTarget: field}: DelegateEvent<Event, HTMLTextAreaElement>)

Source from the content-addressed store, hash-verified

78}
79
80function updateUi({delegateTarget: field}: DelegateEvent<Event, HTMLTextAreaElement>): void {
81 if (isVulnerableToLinkLoss(field.value)) {
82 closestElement(bannerParent, field).append(getUi(field));
83 } else {
84 getUi(field).remove();
85 }
86}
87
88const updateUiDebounced = debounceFn(updateUi, {
89 wait: 300,

Callers

nothing calls this directly

Calls 4

isVulnerableToLinkLossFunction · 0.85
getUiFunction · 0.85
removeMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected