Favicon
Dynamically change a favicon using a data uri string, typically
from canvas.toDataURL()
.
Installation
$ component install component/favicon
Example
Count from 0 through 9:
var icon = ;var canvas = document;canvaswidth = canvasheight = 16;var ctx = canvas;ctxfont = '16px Helvetica, Arial, sans-serif'; var nums = 0123456789;var i = 0; ;
API
icon(string)
Set the favicon to the given data uri string
.
icon.reset()
Reset to the original favicon.
License
MIT