Prevent duplicate portal button when app uses iframes

This commit is contained in:
opi 2019-05-23 11:06:25 +02:00 committed by GitHub
parent ad31e5c80f
commit d17f69f70a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -229,8 +229,11 @@ window.addEvent(document, 'DOMContentLoaded', function() {
if (in_app)
{
// Do not load inside an app iframe (Roundcube visualisation panel for example).
if (window.frameElement == null) {
init_portal_button_and_overlay();
}
}
else
{
init_portal();