mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
feat: disable collab feature when running in iframe (#6646)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
74d2fc6406
commit
3bd5d87cac
5 changed files with 39 additions and 19 deletions
|
@ -748,6 +748,8 @@ export const getFrame = () => {
|
|||
}
|
||||
};
|
||||
|
||||
export const isRunningInIframe = () => getFrame() === "iframe";
|
||||
|
||||
export const isPromiseLike = (
|
||||
value: any,
|
||||
): value is Promise<ResolutionType<typeof value>> => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue