aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/components/MainMenu.js
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-07-14 14:36:56 +0200
committerJoas Schilling <coding@schilljs.com>2022-07-14 14:36:56 +0200
commit1ad24d22dffa108cecf2c5febc2f9fcd5d76070f (patch)
tree23c99f87fcb049f889f84b17ee9b85ab488cbff6 /core/src/components/MainMenu.js
parentfc9a644bb54736721f14135be833f40bb8d6b124 (diff)
downloadnextcloud-server-1ad24d22dffa108cecf2c5febc2f9fcd5d76070f.tar.gz
nextcloud-server-1ad24d22dffa108cecf2c5febc2f9fcd5d76070f.zip
Fix duplicate id "hole"
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/src/components/MainMenu.js')
-rw-r--r--core/src/components/MainMenu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/components/MainMenu.js b/core/src/components/MainMenu.js
index 436fd835cc3..603338d05b3 100644
--- a/core/src/components/MainMenu.js
+++ b/core/src/components/MainMenu.js
@@ -45,8 +45,8 @@ export const setUp = () => {
} else {
appmenuElement.classList.add('has-unread')
appsElement.classList.add('has-unread')
- appmenuElement.getElementsByTagName('image')[0].style.mask = 'url(#hole)'
- appsElement.getElementsByTagName('image')[0].style.mask = 'url(#hole)'
+ appmenuElement.getElementsByTagName('image')[0].style.mask = 'url(#hole-appmenu-' + id + ')'
+ appsElement.getElementsByTagName('image')[0].style.mask = 'url(#hole-' + id + ')'
}
document.getElementById('appmenu').querySelector('[data-id="' + id + '"] .unread-counter').textContent = counter
document.getElementById('apps').querySelector('[data-id="' + id + '"] .unread-counter').textContent = counter