mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 18:21:40 -04:00
Do not inject a #app-navigation-toggle if there is already one
This allows apps to ship their own, as in some cases the #app-content element does not exist on page load and therefore the injection fails and the icon is missing afterwards. Fixes https://github.com/nextcloud/server/issues/14956 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
514d92b7a8
commit
b0987b2543
1 changed files with 3 additions and 1 deletions
|
|
@ -1617,7 +1617,9 @@ function initCore() {
|
|||
setTimeout(resizeMenu, 0);
|
||||
|
||||
// just add snapper for logged in users
|
||||
if($('#app-navigation').length && !$('html').hasClass('lte9')) {
|
||||
// and if the app doesn't handle the nav slider itself
|
||||
if($('#app-navigation').length && !$('html').hasClass('lte9')
|
||||
&& !$('#app-content').hasClass('no-snapper')) {
|
||||
|
||||
// App sidebar on mobile
|
||||
var snapper = new Snap({
|
||||
|
|
|
|||
Loading…
Reference in a new issue