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,7 +229,10 @@ window.addEvent(document, 'DOMContentLoaded', function() {
|
|||
|
||||
if (in_app)
|
||||
{
|
||||
init_portal_button_and_overlay();
|
||||
// Do not load inside an app iframe (Roundcube visualisation panel for example).
|
||||
if (window.frameElement == null) {
|
||||
init_portal_button_and_overlay();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue