mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #15843 from overleaf/jpa-download-events
[web] add additional event tracking GitOrigin-RevId: 877f92db41efff017db370ec75b8d1f861eed4f2
This commit is contained in:
+3
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user