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:
parent
671dd5f164
commit
cff3fb7798
2
js/utility.min.js
vendored
2
js/utility.min.js
vendored
File diff suppressed because one or more lines are too long
@ -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'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user