Restore ability to reopen iframe with a standard style

This commit is contained in:
Fedor A. Fetisov 2018-11-19 19:13:51 +03:00
parent 525b7de7e2
commit edd279ca8e

View File

@ -452,7 +452,7 @@ var Mibew = Mibew || {};
check.url = url;
var style = Mibew.Utils.readCookie('mibew-chat-frame-style-' + this.id);
check.onload = function() {
this.popup.open(this.url + '?style=' + style);
this.popup.open(this.url + (style ? '?style=' + style : ''));
};
check.onerror = function() {
this.popup.close();