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
Copy file name to clipboardExpand all lines: static/play/play.js
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,9 +25,14 @@
25
25
}
26
26
return`https://${domain.trim()}`
27
27
});
28
-
iframe.addEventListener("load",(e)=>{
28
+
iframe.addEventListener("load",async(e)=>{
29
29
constw=iframe.contentWindow;
30
-
log(`Iframe loaded. User logged in: ${(typeofwindow.ccPorted.user!=undefined&&window.ccPorted.user!=null)}`);
30
+
if(window.ccPorted.userPromise){
31
+
awaitwindow.ccPorted.userPromise;
32
+
}else{
33
+
console.log("User promise does not exist. This should not happen. Anyways not setting user tokens (unless between the running time of this and the next if statement the user suddenly defines itself");
34
+
}
35
+
log(`Iframe loaded. User logged in: ${(typeofwindow.ccPorted.user!="undefined"&&window.ccPorted.user!=null)}`);
0 commit comments