nextcloud/apps/comments/src/comments-app.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
467 B
TypeScript
Raw Normal View History

/**
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
import logger from './logger.ts'
import CommentsInstance from './services/CommentsInstance.ts'
// Init Comments
if (window.OCA && !window.OCA.Comments) {
Object.assign(window.OCA, { Comments: {} })
}
// Init Comments App view
Object.assign(window.OCA.Comments, { View: CommentsInstance })
logger.debug('OCA.Comments.View initialized')