Fix app (#2694)
This commit is contained in:
parent
8ae5b68504
commit
a2da95b12b
1 changed files with 2 additions and 3 deletions
|
@ -42,14 +42,13 @@ let isSafariBrowser = false;
|
||||||
const isBrowser = typeof window !== "undefined";
|
const isBrowser = typeof window !== "undefined";
|
||||||
|
|
||||||
if (isBrowser) {
|
if (isBrowser) {
|
||||||
|
window.CalEmbed = window.CalEmbed || {};
|
||||||
|
window.CalEmbed.embedStore = embedStore;
|
||||||
const ua = navigator.userAgent.toLowerCase();
|
const ua = navigator.userAgent.toLowerCase();
|
||||||
isSafariBrowser = ua.includes("safari") && !ua.includes("chrome");
|
isSafariBrowser = ua.includes("safari") && !ua.includes("chrome");
|
||||||
if (isSafariBrowser) {
|
if (isSafariBrowser) {
|
||||||
log("Safari Detected: Using setTimeout instead of rAF");
|
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) {
|
function runAsap(fn: (...arg: any) => void) {
|
||||||
|
|
Loading…
Reference in a new issue