aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/comp/MarkupContentPreview.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/comp/MarkupContentPreview.js')
-rw-r--r--web_src/js/features/comp/MarkupContentPreview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/comp/MarkupContentPreview.js b/web_src/js/features/comp/MarkupContentPreview.js
index 0b05c4efae..ed0995296b 100644
--- a/web_src/js/features/comp/MarkupContentPreview.js
+++ b/web_src/js/features/comp/MarkupContentPreview.js
@@ -1,6 +1,6 @@
import {initMarkupContent} from '../../markup/content.js';
-const {csrf} = window.config;
+const {csrfToken} = window.config;
export function initCompMarkupContentPreviewTab($form) {
const $tabMenu = $form.find('.tabular.menu');
@@ -8,7 +8,7 @@ export function initCompMarkupContentPreviewTab($form) {
$tabMenu.find(`.item[data-tab="${$tabMenu.data('preview')}"]`).on('click', function () {
const $this = $(this);
$.post($this.data('url'), {
- _csrf: csrf,
+ _csrf: csrfToken,
mode: 'comment',
context: $this.data('context'),
text: $form.find(`.tab[data-tab="${$tabMenu.data('write')}"] textarea`).val()