post ui metrics

This commit is contained in:
Alex Grintsvayg 2020-03-24 15:31:00 -04:00
parent 58d323fd97
commit fb2ad33871
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5

View file

@ -250,7 +250,7 @@ function sendPromMetric(name: string, value?: number) {
let url = new URL(SDK_API_PATH + '/metric/ui');
const params = { name: name, value: value ? value.toString() : '' };
url.search = new URLSearchParams(params).toString();
return fetch(url);
return fetch(url, { method: 'post' });
}
}