Fix sometimes undefined variable in JS

Well, this was missing all the time, I wonder why it started to make problems NOW and only in some cases.
This commit is contained in:
Tetrakern 2024-01-24 21:57:37 +01:00
parent 671dd5f164
commit cff3fb7798
2 changed files with 3 additions and 3 deletions

2
js/utility.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -65,7 +65,7 @@ async function fcn_ajaxPost(data = {}, url = null, headers = {}) {
url = url ? url : fictioneer_ajax.ajax_url;
// Default headers
final_headers = {
let final_headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Cache-Control': 'no-cache'
}
@ -115,7 +115,7 @@ async function fcn_ajaxGet(data = {}, url = null, headers = {}) {
url = fcn_buildUrl(data, url);
// Default headers
final_headers = {
let final_headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Cache-Control': 'no-cache'
}