diff options
Diffstat (limited to 'apps/comments')
-rw-r--r-- | apps/comments/src/components/Comment.vue | 4 | ||||
-rw-r--r-- | apps/comments/src/services/CommentsInstance.js | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/apps/comments/src/components/Comment.vue b/apps/comments/src/components/Comment.vue index 7ccf6204aa1..29469dcf9e9 100644 --- a/apps/comments/src/components/Comment.vue +++ b/apps/comments/src/components/Comment.vue @@ -110,13 +110,15 @@ import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' import NcActionSeparator from '@nextcloud/vue/dist/Components/NcActionSeparator.js' import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' -const NcRichContenteditable = () => import('@nextcloud/vue/dist/Components/NcRichContenteditable') import RichEditorMixin from '@nextcloud/vue/dist/Mixins/richEditor.js' import ArrowRight from 'vue-material-design-icons/ArrowRight.vue' import Moment from './Moment.vue' import CommentMixin from '../mixins/CommentMixin.js' +// Dynamic loading +const NcRichContenteditable = () => import('@nextcloud/vue/dist/Components/NcRichContenteditable.js') + export default { name: 'Comment', diff --git a/apps/comments/src/services/CommentsInstance.js b/apps/comments/src/services/CommentsInstance.js index 82f1b77e15e..838305a00e9 100644 --- a/apps/comments/src/services/CommentsInstance.js +++ b/apps/comments/src/services/CommentsInstance.js @@ -22,9 +22,13 @@ import { getLoggerBuilder } from '@nextcloud/logger' import { translate as t, translatePlural as n } from '@nextcloud/l10n' +import { getRequestToken } from '@nextcloud/auth' import CommentsApp from '../views/Comments.vue' import Vue from 'vue' +// eslint-disable-next-line camelcase +__webpack_nonce__ = btoa(getRequestToken()) + const logger = getLoggerBuilder() .setApp('comments') .detectUser() |