3bc05d88df
* if both local and remote instance have external XMPP connections enabled, the user joins the remote room with his local account * some code refactoring (builtin.ts) Note: documentation and settings descriptions are to do. Related to #112
12 lines
139 B
TypeScript
12 lines
139 B
TypeScript
function inIframe (): boolean {
|
|
try {
|
|
return window.self !== window.top
|
|
} catch (e) {
|
|
return true
|
|
}
|
|
}
|
|
|
|
export {
|
|
inIframe
|
|
}
|