summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeverin von Wnuck-Lipinski <ss7@live.de>2024-05-01 09:00:36 +0200
committerGitHub <noreply@github.com>2024-05-01 09:00:36 +0200
commitebb1edc652b284c85c5952208b7bdfd279d32189 (patch)
treed5b8fdb93df9c2ec38b86b7f5d615591ec2f5277
parent6204670c663338be519d3cb96fd9232752e08294 (diff)
gui: Fix Firefox bookmark favicon (fixes #9506) (#9507)
### Purpose Firefox uses the last specified favicon link for bookmarks, but only if it is available on initial page load. Remove the second link and use ng-href to change the icon instead. I'm not really familiar with AngularJS, feel free to offer suggestions for improvements. ### Testing Briefly tested on Firefox 124.0.2 and Chrome 123.0.6312.105.
-rw-r--r--gui/default/index.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/gui/default/index.html b/gui/default/index.html
index 0565f567d..d0aee77d1 100644
--- a/gui/default/index.html
+++ b/gui/default/index.html
@@ -12,8 +12,7 @@
<meta charset="utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <link rel="shortcut icon" href="assets/img/favicon-default.png" type="image/x-icon"/>
- <link rel="shortcut icon" href="assets/img/favicon-{{syncthingStatus()}}.png" type="image/x-icon"/>
+ <link rel="shortcut icon" href="assets/img/favicon-default.png" ng-href="assets/img/favicon-{{syncthingStatus()}}.png" type="image/x-icon"/>
<link rel="mask-icon" href="assets/img/safari-pinned-tab.svg" color="#0882c8"/>
<title ng-bind="thisDeviceName() + ' | Syncthing'"></title>