Merge pull request #15843 from overleaf/jpa-download-events

[web] add additional event tracking

GitOrigin-RevId: 877f92db41efff017db370ec75b8d1f861eed4f2
This commit is contained in:
Jakob Ackermann
2023-11-21 09:04:28 +00:00
committed by Copybot
parent f76563787b
commit 6b2daed903
18 changed files with 72 additions and 5 deletions
+3
View File
@@ -120,6 +120,9 @@ globalThis.WebSocket = class WebSocket {
static CLOSED = 3
}
// add stub for window.matchMedia
window.matchMedia = () => ({ matches: false })
// node-fetch doesn't accept relative URL's: https://github.com/node-fetch/node-fetch/blob/master/docs/v2-LIMITS.md#known-differences
const fetch = require('node-fetch')
globalThis.fetch =