mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Prevent duplicate portal button when app uses iframes
This commit is contained in:
parent
ad31e5c80f
commit
d17f69f70a
1 changed files with 4 additions and 1 deletions
|
@ -229,8 +229,11 @@ window.addEvent(document, 'DOMContentLoaded', function() {
|
||||||
|
|
||||||
if (in_app)
|
if (in_app)
|
||||||
{
|
{
|
||||||
|
// Do not load inside an app iframe (Roundcube visualisation panel for example).
|
||||||
|
if (window.frameElement == null) {
|
||||||
init_portal_button_and_overlay();
|
init_portal_button_and_overlay();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
init_portal();
|
init_portal();
|
||||||
|
|
Loading…
Reference in a new issue