fix: Dry Run for non-pre-render scenario (#21893)
* Fix dry-run non-prerender scenario * Add test * Enable logging through cal.embed.logging=1
This commit is contained in:
1 parent
aabef47ff1
commit
bcb340d97e
4 files changed
+34
-3
No files matched your search
@@ -349,8 +349,10 @@ export class Cal {
|
||||
|
||||
urlInstance.searchParams.set("embed", this.namespace);
|
||||
|
||||
if (calConfig.debug) {
|
||||
urlInstance.searchParams.set("debug", `${calConfig.debug}`);
|
||||
const pageParams = this.getQueryParamsFromPage();
|
||||
// cal.embed.logging=1 enabled logging in parent and by setting debug=true in iframe, it enables logging in iframe(child) as well
|
||||
if (calConfig.debug || pageParams["cal.embed.logging"] === "1") {
|
||||
urlInstance.searchParams.set("debug", "true");
|
||||
}
|
||||
|
||||
// Keep iframe invisible, till the embedded calLink sets its color-scheme. This is so that there is no flash of non-transparent(white/black) background
|
||||
|
||||
Reference in new issue
Block a user