瀏覽代碼

Do not register JS share plugin if core sharing API is disabled

tags/v8.2beta1
Vincent Petry 9 年之前
父節點
當前提交
e65034e4bc
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. 4
    0
      apps/files_sharing/js/share.js

+ 4
- 0
apps/files_sharing/js/share.js 查看文件

@@ -25,6 +25,10 @@
* @param {OCA.Files.FileList} fileList file list to be extended
*/
attach: function(fileList) {
// core sharing is disabled/not loaded
if (!OC.Share) {
return;
}
if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return;
}

Loading…
取消
儲存