Last active
September 26, 2015 19:43
-
-
Save erikzrekz/327426aa550a060fc9b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/////////////////////////////////////////////////// | |
// Source: http://marcel.turi.co/up/favicon.html // | |
/////////////////////////////////////////////////// | |
var favIcon = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABrUlEQVR42mNkwAOepOgxMTD9mwhk..."; | |
var docHead = document.getElementsByTagName('head')[0]; | |
var newLink = document.createElement('link'); | |
newLink.rel = 'shortcut icon'; | |
newLink.href = favIcon; | |
docHead.appendChild(newLink); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Steps to make a data:image/x-icon: