瀏覽代碼

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>
tags/v16.0.0RC1
Christoph Wurst 5 年之前
父節點
當前提交
0871b9acff
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      core/js/js.js

+ 3
- 1
core/js/js.js 查看文件

@@ -1192,7 +1192,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…
取消
儲存