fixed error in fetch

This commit is contained in:
asus
2024-03-24 16:06:47 +01:00
parent 1856943bc9
commit 28a1f7922d

View File

@@ -8,7 +8,7 @@ export function PLGNTLS_fetch(url, options = {}) {
url = PLGNTLS_data.fetch_url + url;
options.headers = options.headers || {};
options.headers['X-WP-Nonce'] = PLGNTLS_data.fetch_nonce,
options.headers['X-WP-Nonce'] = PLGNTLS_data.fetch_nonce;
return fetch(url, options);
}