{"action":"created","issue":{"url":"https://api.github.com/repos/ejci/favico.js/issues/74","labels_url":"https://api.github.com/repos/ejci/favico.js/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/ejci/favico.js/issues/74/comments","events_url":"https://api.github.com/repos/ejci/favico.js/issues/74/events","html_url":"https://github.com/ejci/favico.js/issues/74","id":77632859,"number":74,"title":"Icons vs badge","user":{"login":"char0n","id":193286,"avatar_url":"https://avatars.githubusercontent.com/u/193286?v=3","gravatar_id":"","url":"https://api.github.com/users/char0n","html_url":"https://github.com/char0n","followers_url":"https://api.github.com/users/char0n/followers","following_url":"https://api.github.com/users/char0n/following{/other_user}","gists_url":"https://api.github.com/users/char0n/gists{/gist_id}","starred_url":"https://api.github.com/users/char0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/char0n/subscriptions","organizations_url":"https://api.github.com/users/char0n/orgs","repos_url":"https://api.github.com/users/char0n/repos","events_url":"https://api.github.com/users/char0n/events{/privacy}","received_events_url":"https://api.github.com/users/char0n/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ejci/favico.js/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-18T12:12:33Z","updated_at":"2015-05-18T13:11:03Z","closed_at":"2015-05-18T13:11:03Z","body":"This is maybe more a question than a bug. I have been trying everything, but nothing seems to work.\r\n\r\nFirst I will explain what is expected behavior:\r\n\r\n0.) set badge\r\n1.) change the icon, bud preserve the badge\r\n2.) show badge on top of changed icon\r\n3.) change the icon to original, bud preserve the badge\r\n4.) continue the loop from the 0.)\r\n\r\nMy code looks like this:\r\n\r\nHTML:\r\n<link rel=\"icon\" href=\"assets/favicon.ico\" />\r\n\r\nJavaScript:\r\nvar favico = new Favico();\r\nchangeFaviconEventHandler = function(img) {\r\n  favico.image(img);\r\n};\r\nchangeBadgeEventHandler = function(number) {\r\n  favico.badge(number);\r\n};\r\n\r\nThe actual behavior is this:\r\n\r\nWhenever I call favico.image(img), badge is lost. Whenever I call favico.badge(number) icon is resetted to the original icon, that was there when the page loaded and badge information is shown on top of it.\r\n\r\n\r\nAm I missing something or my expected behavior is not possible using this library ?\r\n\r\nThanks a lot."},"comment":{"url":"https://api.github.com/repos/ejci/favico.js/issues/comments/103053860","html_url":"https://github.com/ejci/favico.js/issues/74#issuecomment-103053860","issue_url":"https://api.github.com/repos/ejci/favico.js/issues/74","id":103053860,"user":{"login":"char0n","id":193286,"avatar_url":"https://avatars.githubusercontent.com/u/193286?v=3","gravatar_id":"","url":"https://api.github.com/users/char0n","html_url":"https://github.com/char0n","followers_url":"https://api.github.com/users/char0n/followers","following_url":"https://api.github.com/users/char0n/following{/other_user}","gists_url":"https://api.github.com/users/char0n/gists{/gist_id}","starred_url":"https://api.github.com/users/char0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/char0n/subscriptions","organizations_url":"https://api.github.com/users/char0n/orgs","repos_url":"https://api.github.com/users/char0n/repos","events_url":"https://api.github.com/users/char0n/events{/privacy}","received_events_url":"https://api.github.com/users/char0n/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T13:11:03Z","updated_at":"2015-05-18T13:11:03Z","body":"Ok thanks, I used https://github.com/tommoor/tinycon which is referenced from your project, that does exactly what I need."}}