summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/comp/WebHookEditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/comp/WebHookEditor.js')
-rw-r--r--web_src/js/features/comp/WebHookEditor.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/comp/WebHookEditor.js b/web_src/js/features/comp/WebHookEditor.js
index 6911c6cb16..ddff73ee37 100644
--- a/web_src/js/features/comp/WebHookEditor.js
+++ b/web_src/js/features/comp/WebHookEditor.js
@@ -1,4 +1,4 @@
-const {csrf} = window.config;
+const {csrfToken} = window.config;
export function initWebHookEditor() {
if ($('.new.webhook').length === 0) {
@@ -30,7 +30,7 @@ export function initWebHookEditor() {
const $this = $(this);
$this.addClass('loading disabled');
$.post($this.data('link'), {
- _csrf: csrf
+ _csrf: csrfToken
}).done(
setTimeout(() => {
window.location.href = $this.data('redirect');