mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Allow async beforeSend function. Closes #3584
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
Some checks are pending
Node.js CI / build (postgresql, 18.18) (push) Waiting to run
This commit is contained in:
parent
aa7d3cd1aa
commit
6799bd113a
1 changed files with 1 additions and 1 deletions
|
|
@ -143,7 +143,7 @@
|
|||
const callback = window[beforeSend];
|
||||
|
||||
if (typeof callback === 'function') {
|
||||
payload = callback(type, payload);
|
||||
payload = await Promise.resolve(callback(type, payload));
|
||||
}
|
||||
|
||||
if (!payload) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue