fixed typo

This commit is contained in:
Igor Miňo 2025-06-15 19:05:30 +02:00
parent a10e864ba3
commit dab07e55ec

View File

@ -6,7 +6,7 @@
*/ */
class <?php echo $this->apiName; ?> { class <?php echo $this->apiName; ?> {
endpont = "<?php echo $this->endpoint; ?>"; endpoint = <?php echo sprintf(substr($this->endpoint, 0, 4) == 'http' ? '"%s"' : '%s', $this->endpoint); ?>;
/* ---------------------------------------------------- /* ----------------------------------------------------
* General API call * General API call
@ -29,7 +29,7 @@ class <?php echo $this->apiName; ?> {
if (typeof val == 'object') val = JSON.stringify(val); if (typeof val == 'object') val = JSON.stringify(val);
form_data.append(key, val); form_data.append(key, val);
}); });
xhttp.open('POST', this.endpont + '?action=' + method); xhttp.open('POST', this.endpoint + '?action=' + method);
xhttp.send(form_data); xhttp.send(form_data);
} }