Merge pull request #15046 from nextcloud/backport/14972/stable15

[stable15] Disable the injected snapper logic when apps want to ship their own
This commit is contained in:
John Molakvoæ 2019-04-11 09:06:26 +02:00 committed by GitHub
commit 96a981e930
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({