mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Ensure sendMBOnce only sends event once (#5481)
GitOrigin-RevId: 360ae263213b4fd36aa33d41c6d54ef91f7f54fa
This commit is contained in:
parent
09f3962ded
commit
01f7f19446
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ export function sendMB(key, segmentation = {}) {
|
||||||
export function sendMBOnce(key, segmentation = {}) {
|
export function sendMBOnce(key, segmentation = {}) {
|
||||||
if (alreadySent(key)) return
|
if (alreadySent(key)) return
|
||||||
sendMB(key, segmentation)
|
sendMB(key, segmentation)
|
||||||
markAsSent()
|
markAsSent(key)
|
||||||
}
|
}
|
||||||
|
|
||||||
export function sendMBSampled(key, body = {}, rate = 0.01) {
|
export function sendMBSampled(key, body = {}, rate = 0.01) {
|
||||||
|
|
Loading…
Reference in a new issue