diff options
author | Saúl Ibarra Corretgé <s@saghul.net> | 2023-05-25 13:57:13 +0200 |
---|---|---|
committer | Saúl Ibarra Corretgé <s@saghul.net> | 2023-05-25 14:14:34 +0200 |
commit | 625e2caabdd080cda15c0bbb5c623a04ea68d4e3 (patch) | |
tree | 8aeb376594698adc3df854b0ea25a96411f4edc0 /main.js | |
parent | 437c16b433362197b16b7393dca9be3fcf087c3d (diff) |
fix(main) fixed onBeforeSendHeaders API usage
The callback needs to be called with an object, not a boolean...
Diffstat (limited to 'main.js')
-rw-r--r-- | main.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -250,13 +250,13 @@ function createJitsiMeetWindow() { const appBasePath = path.resolve(basePath); if (!requestedBasename.startsWith(appBasePath)) { - callback(false); + callback({ cancel: true }); console.warn(`Rejected file URL: ${details.url}`); return; } - callback(true); + callback({ cancel: false }); }); // Filter out x-frame-options and frame-ancestors CSP to allow loading jitsi via the iframe API |