summaryrefslogtreecommitdiffstats
path: root/web_src/js/features/lastcommitloader.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/lastcommitloader.js')
-rw-r--r--web_src/js/features/lastcommitloader.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web_src/js/features/lastcommitloader.js b/web_src/js/features/lastcommitloader.js
index 964255f229..04e1e452ae 100644
--- a/web_src/js/features/lastcommitloader.js
+++ b/web_src/js/features/lastcommitloader.js
@@ -1,4 +1,4 @@
-const {csrf} = window.config;
+const {csrfToken} = window.config;
export async function initLastCommitLoader() {
const entryMap = {};
@@ -18,7 +18,7 @@ export async function initLastCommitLoader() {
if (entries.length > 200) {
$.post(lastCommitLoaderURL, {
- _csrf: csrf,
+ _csrf: csrfToken,
}, (data) => {
$('table#repo-files-table').replaceWith(data);
});
@@ -26,7 +26,7 @@ export async function initLastCommitLoader() {
}
$.post(lastCommitLoaderURL, {
- _csrf: csrf,
+ _csrf: csrfToken,
'f': entries,
}, (data) => {
$(data).find('tr').each((_, row) => {