You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first badge update goes through fine, but then updates are only applied when the user is looking at the page. This seems to be a Chrome change because it works fine in earlier versions of Chrome, but the fix for the time being is to trigger the update twice.
The text was updated successfully, but these errors were encountered:
The canvas context which receives the draw calls doesn't update the canvas display immediately in new chrome versions when the page is not visible.
It is however updated after the next tick in the event loop. You, therefore, can change the "link.setIcon" function in the source code to:
link.setIcon = function (canvas) {
setTimeout(function() {
var url = canvas.toDataURL('image/png');
link.setIconSrc(url);
}, 0);
};
The first badge update goes through fine, but then updates are only applied when the user is looking at the page. This seems to be a Chrome change because it works fine in earlier versions of Chrome, but the fix for the time being is to trigger the update twice.
The text was updated successfully, but these errors were encountered: