Reset favico on unloading. Should resolve bookmark favicon issue.

See https://github.com/ejci/favico.js/issues/23 for detail
This commit is contained in:
Lorenz Hübschle-Schneider 2014-02-10 19:26:30 +00:00
parent 0107dabb2d
commit 6b31a3e59a
1 changed files with 1 additions and 0 deletions

View File

@ -715,6 +715,7 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
// Prevent user from accidentally leaving the page
window.onbeforeunload = function(event) {
event.preventDefault();
$scope.favico.reset();
};
}]