mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Remove sysend dependency (#10852)
GitOrigin-RevId: c3d9601256af8720ab41264609cb5c5c810afbba
This commit is contained in:
+10
@@ -98,6 +98,16 @@ globalThis.ResizeObserver =
|
||||
window.ResizeObserver =
|
||||
require('@juggle/resize-observer').ResizeObserver
|
||||
|
||||
// add stub for BroadcastChannel (unused in these tests)
|
||||
globalThis.BroadcastChannel =
|
||||
global.BroadcastChannel =
|
||||
window.BroadcastChannel =
|
||||
class BroadcastChannel {
|
||||
addEventListener(type, listener) {}
|
||||
removeEventListener(type, listener) {}
|
||||
postMessage(message) {}
|
||||
}
|
||||
|
||||
// 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