Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 473 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 473 Bytes

favicon.js

A simple javascript library to change the page favicon.

How to use

To use favicon.js, include it in your head element:

<head>
  <script src="https://oxmc.is-a.dev/favicon.js/favicon.min.js"></script>
</head>

Then run the function favicon:

favicon('https://github.com/favicon.ico');

That's it!

heres an example: https://oxmc.is-a.dev/favicon.js/example.html