aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2023-05-25 13:57:13 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2023-05-25 14:14:34 +0200
commit625e2caabdd080cda15c0bbb5c623a04ea68d4e3 (patch)
tree8aeb376594698adc3df854b0ea25a96411f4edc0
parent437c16b433362197b16b7393dca9be3fcf087c3d (diff)
fix(main) fixed onBeforeSendHeaders API usage
The callback needs to be called with an object, not a boolean...
-rw-r--r--main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.js b/main.js
index 548ba0e..8f338b2 100644
--- a/main.js
+++ b/main.js
@@ -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