|
|
@ -3816,6 +3816,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
|
|
|
|
|
|
|
|
var titleBackup = document.title, |
|
|
|
var titleBackup = document.title, |
|
|
|
titlePromise; |
|
|
|
titlePromise; |
|
|
|
|
|
|
|
var prevFavicon; |
|
|
|
|
|
|
|
|
|
|
|
$rootScope.$watch('idle.isIDLE', function (newVal) { |
|
|
|
$rootScope.$watch('idle.isIDLE', function (newVal) { |
|
|
|
if (!newVal) { |
|
|
|
if (!newVal) { |
|
|
@ -3896,12 +3897,18 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setFavicon (href) { |
|
|
|
function setFavicon (href) { |
|
|
|
|
|
|
|
href = href || 'favicon.ico'; |
|
|
|
|
|
|
|
if (prevFavicon === href) { |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
var link = document.createElement('link'); |
|
|
|
var link = document.createElement('link'); |
|
|
|
link.rel = 'shortcut icon'; |
|
|
|
link.rel = 'shortcut icon'; |
|
|
|
link.type = 'image/x-icon'; |
|
|
|
link.type = 'image/x-icon'; |
|
|
|
link.href = href || 'favicon.ico'; |
|
|
|
link.href = href; |
|
|
|
faviconEl.parentNode.replaceChild(link, faviconEl); |
|
|
|
faviconEl.parentNode.replaceChild(link, faviconEl); |
|
|
|
faviconEl = link; |
|
|
|
faviconEl = link; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
prevFavicon = href |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function savePeerSettings (peerID, settings) { |
|
|
|
function savePeerSettings (peerID, settings) { |
|
|
|