pull/2695/head
Hariom Balhara 2022-05-07 11:26:29 +05:30 committed by GitHub
parent 8ae5b68504
commit a2da95b12b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -42,14 +42,13 @@ let isSafariBrowser = false;
const isBrowser = typeof window !== "undefined";
if (isBrowser) {
window.CalEmbed = window.CalEmbed || {};
window.CalEmbed.embedStore = embedStore;
const ua = navigator.userAgent.toLowerCase();
isSafariBrowser = ua.includes("safari") && !ua.includes("chrome");
if (isSafariBrowser) {
log("Safari Detected: Using setTimeout instead of rAF");
}
window.CalEmbed = window.CalEmbed || {};
//TODO: Send postMessage to parent to get all log messages in the same queue.
window.CalEmbed.embedStore = embedStore;
}
function runAsap(fn: (...arg: any) => void) {