MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / updateFavicon

Function updateFavicon

scripts/test.js:318–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

316 document.head.appendChild(favicon);
317
318 function updateFavicon() {
319 requestAnimationFrame(updateFavicon);
320 let img = canvas.toDataURL();
321 favicon.setAttribute("href", img);
322 }
323
324 setInterval(() => {
325 context.clearRect(0, 0, canvas.width, canvas.height);

Callers 1

test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected