Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get it working #139

Open
evserykh opened this issue Nov 1, 2017 · 1 comment
Open

Can't get it working #139

evserykh opened this issue Nov 1, 2017 · 1 comment

Comments

@evserykh
Copy link

evserykh commented Nov 1, 2017

I use Chromium Version 62.0.3202.62 (Official Build) Built on Ubuntu, running on Ubuntu 16.04 (64-bit) and I'm trying to get it working and I don't see any errors with the following simple code:

<!DOCTYPE html>                                                                                                         
<html lang="en">                                                                                                        
  <head>                                                                                                                
    <meta charset="UTF-8">                                                                                              
    <title>Example</title>                                                                                              
    <script src="https://cdnjs.cloudflare.com/ajax/libs/favico.js/0.3.10/favico.min.js"></script>                       
  </head>                                                                                                               
  <body>                                                                                                                
    <button id="increase">+1</button>                                                                                   
    <script>                                                                                                            
      var favicon = new Favico({ position: 'up' });                                                                        
      var counter = 0;                                                                                                     
      document.getElementById('increase').addEventListener('click', function() {                                           
        favicon.badge(counter += 1);                                                                                       
      });                                                                                                                  
    </script>                                                                                                              
  </body>                                                                                                                  
</html>

Am I missing something? 🤔

@didaxRedux
Copy link

This library not work when favicon is not defined inside your head section.
<link rel="shortcut icon" type="image/png" href="...">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants