MCPcopy
hub / github.com/RetireJS/retire.js / updateButton

Function updateButton

firefox/lib/main.js:114–126  ·  view source on GitHub ↗
(vulnerableCount)

Source from the content-addressed store, hash-verified

112}
113
114function updateButton(vulnerableCount) {
115 let count = Number(vulnerableCount);
116 let tooltipText = "Retire.js";
117 if (count > 0) {
118 tooltipText += "\n" + count + " vulnerable librar" + (count > 1 ? "ies" : "y") +
119 " detected.";
120 }
121 button.badge = {
122 text: count,
123 color: "rgb(193, 56, 50)"
124 };
125 button.tooltiptext = tooltipText;
126}
127
128function isChannelInitialDocument(httpChannel) {
129 return httpChannel.loadFlags & httpChannel.LOAD_INITIAL_DOCUMENT_URI;

Callers 5

onScanResultReadyFunction · 0.85
onActivateWindowFunction · 0.85
onUnloadFunction · 0.85
onTabActivateFunction · 0.85
onExamineResponseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected