diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-04 11:57:55 +0300 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-12-04 11:57:55 +0300 |
commit | 46ce797197571f2cf873ca116e31165ea6a395bc (patch) | |
tree | 7aff58556652dfcf46cc16a5e2fc7a8d70d8124e /apps/files_sharing/src | |
parent | c1277ea2fa8ed86eaebfdfaf599cf8d5d79c2e96 (diff) |
Properly query files
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src')
-rw-r--r-- | apps/files_sharing/src/files_sharing_tab.js | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/apps/files_sharing/src/files_sharing_tab.js b/apps/files_sharing/src/files_sharing_tab.js index 076e4c8f3f2..b46bca6fc9e 100644 --- a/apps/files_sharing/src/files_sharing_tab.js +++ b/apps/files_sharing/src/files_sharing_tab.js @@ -26,14 +26,12 @@ import ExternalLinkActions from './services/ExternalLinkActions' import TabSections from './services/TabSections' -if (window.OCA && window.OCA.Sharing) { - Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() }) +// Init Sharing Tab Service +if (!window.OCA.Sharing) { + window.OCA.Sharing = {} } - -if (window.OCA && window.OCA.Sharing) { - Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() }) -} - +Object.assign(window.OCA.Sharing, { ShareSearch: new ShareSearch() }) +Object.assign(window.OCA.Sharing, { ExternalLinkActions: new ExternalLinkActions() }) Object.assign(window.OCA.Sharing, { ShareTabSections: new TabSections() }) window.addEventListener('DOMContentLoaded', () => { |