You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Prerendering is a hidden process and we shouldn't really track any events from it unless absolutely necessary
26
24
consteventsAllowedInPrerendering=[
27
25
// so that Postmessage communication starts
28
26
"__iframeReady",
@@ -57,9 +55,10 @@ declare global {
57
55
exportconstembedStore={
58
56
/**
59
57
* Tracks whether the prerender has been completed or not.
60
-
* prerenderState would be "completed" even after the iframe was switched from isPrerendering to notPrerendering(which happensafter connect)
58
+
* NOTE: prerenderState would be "completed" even after the iframe was switched from isPrerendering=true to not Prerendering(which happens after connect)
Copy file name to clipboardExpand all lines: packages/embeds/embed-core/src/embed.ts
+1-1
Original file line number
Diff line number
Diff line change
@@ -423,8 +423,8 @@ export class Cal {
423
423
// But it's okay to do it here for now because the embedded calLink also keeps itself hidden till it receives `parentKnowsIframeReady` message(It has it's own reasons for that)
424
424
// Once the embedded calLink starts not hiding the document, we should optimize this line to make the iframe visible earlier than this.
425
425
426
-
// Imp: Don't use visibility:visible as that would make the iframe show even if the host element(A paren tof the iframe) has visibility:hidden set. Just reset the visibility to default
427
426
if(!e.detail.data.isPrerendering){
427
+
// Imp: Don't use visibility:visible as that would make the iframe show even if the host element(A paren tof the iframe) has visibility:hidden set. Just reset the visibility to default
0 commit comments