feat: disable collab feature when running in iframe (#6646)

Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
Arnost Pleskot 2023-06-12 17:44:31 +02:00 committed by GitHub
parent 74d2fc6406
commit 3bd5d87cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 19 deletions

View file

@ -748,6 +748,8 @@ export const getFrame = () => {
}
};
export const isRunningInIframe = () => getFrame() === "iframe";
export const isPromiseLike = (
value: any,
): value is Promise<ResolutionType<typeof value>> => {