Css url fixes in the iframe

This commit is contained in:
Taras Machyshyn
2017-12-18 16:52:22 +02:00
parent 60eefda570
commit fa8b77392a

View File

@@ -65,7 +65,11 @@ Espo.define('views/admin/index', 'view', function (Dep) {
'css=' + encodeURIComponent(this.getConfig().get('siteUrl') + '/' + this.getThemeManager().getStylesheet())
];
this.iframeUrl = this.getConfig().get('adminPanelIframeUrl') || 'https://s.espocrm.com/';
this.iframeUrl += '?' + iframeParams.join('&');
if (~this.iframeUrl.indexOf('?')) {
this.iframeUrl += '&' + iframeParams.join('&');
} else {
this.iframeUrl += '?' + iframeParams.join('&');
}
if (!this.getConfig().get('adminNotificationsDisabled')) {
this.createView('notificationsPanel', 'views/admin/panels/notifications', {