mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Merge pull request #137 from YunoHost/1354-prevent-duplicate-button-in-app-iframe
Prevent duplicate portal button when app uses iframes. Fix #1354
This commit is contained in:
commit
3a8a1bdaec
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