diff options
Diffstat (limited to 'apps/comments/src/comments-app.js')
-rw-r--r-- | apps/comments/src/comments-app.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/comments/src/comments-app.js b/apps/comments/src/comments-app.js new file mode 100644 index 00000000000..a91a4bb37bb --- /dev/null +++ b/apps/comments/src/comments-app.js @@ -0,0 +1,15 @@ +/** + * SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +import CommentsInstance from './services/CommentsInstance.js' + +// Init Comments +if (window.OCA && !window.OCA.Comments) { + Object.assign(window.OCA, { Comments: {} }) +} + +// Init Comments App view +Object.assign(window.OCA.Comments, { View: CommentsInstance }) +console.debug('OCA.Comments.View initialized') |