2020-10-04 09:33:17 -04:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2020-10-04 09:33:17 -04:00
|
|
|
*/
|
|
|
|
|
|
2026-02-15 17:02:49 -05:00
|
|
|
import logger from './logger.ts'
|
|
|
|
|
import CommentsInstance from './services/CommentsInstance.ts'
|
2020-10-04 09:33:17 -04:00
|
|
|
|
|
|
|
|
// 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')
|